diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/connector.h | 2 | ||||
| -rw-r--r-- | include/linux/fs.h | 5 | ||||
| -rw-r--r-- | include/linux/fuse.h | 9 | ||||
| -rw-r--r-- | include/linux/personality.h | 1 | ||||
| -rw-r--r-- | include/linux/pwm_backlight.h | 1 | ||||
| -rw-r--r-- | include/linux/rio_regs.h | 18 | ||||
| -rw-r--r-- | include/linux/ti_wilink_st.h | 27 | ||||
| -rw-r--r-- | include/linux/tty.h | 2 | ||||
| -rw-r--r-- | include/linux/tty_driver.h | 3 | ||||
| -rw-r--r-- | include/linux/writeback.h | 11 | ||||
| -rw-r--r-- | include/target/target_core_fabric_ops.h | 6 | 
11 files changed, 62 insertions, 23 deletions
diff --git a/include/linux/connector.h b/include/linux/connector.h index 0c69ad825b3..3c9c54fd569 100644 --- a/include/linux/connector.h +++ b/include/linux/connector.h @@ -1,7 +1,7 @@  /*   * 	connector.h   *  - * 2004-2005 Copyright (c) Evgeniy Polyakov <johnpol@2ka.mipt.ru> + * 2004-2005 Copyright (c) Evgeniy Polyakov <zbr@ioremap.net>   * All rights reserved.   *    * This program is free software; you can redistribute it and/or modify diff --git a/include/linux/fs.h b/include/linux/fs.h index 178cdb4f1d4..c2bd68f2277 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2318,6 +2318,11 @@ extern struct inode * iget5_locked(struct super_block *, unsigned long, int (*te  extern struct inode * iget_locked(struct super_block *, unsigned long);  extern int insert_inode_locked4(struct inode *, unsigned long, int (*test)(struct inode *, void *), void *);  extern int insert_inode_locked(struct inode *); +#ifdef CONFIG_DEBUG_LOCK_ALLOC +extern void lockdep_annotate_inode_mutex_key(struct inode *inode); +#else +static inline void lockdep_annotate_inode_mutex_key(struct inode *inode) { }; +#endif  extern void unlock_new_inode(struct inode *);  extern unsigned int get_next_ino(void); diff --git a/include/linux/fuse.h b/include/linux/fuse.h index d464de53db4..464cff52686 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h @@ -47,6 +47,9 @@   *  - FUSE_IOCTL_UNRESTRICTED shall now return with array of 'struct   *    fuse_ioctl_iovec' instead of ambiguous 'struct iovec'   *  - add FUSE_IOCTL_32BIT flag + * + * 7.17 + *  - add FUSE_FLOCK_LOCKS and FUSE_RELEASE_FLOCK_UNLOCK   */  #ifndef _LINUX_FUSE_H @@ -78,7 +81,7 @@  #define FUSE_KERNEL_VERSION 7  /** Minor version number of this interface */ -#define FUSE_KERNEL_MINOR_VERSION 16 +#define FUSE_KERNEL_MINOR_VERSION 17  /** The node ID of the root inode */  #define FUSE_ROOT_ID 1 @@ -153,8 +156,10 @@ struct fuse_file_lock {  /**   * INIT request/reply flags   * + * FUSE_POSIX_LOCKS: remote locking for POSIX file locks   * FUSE_EXPORT_SUPPORT: filesystem handles lookups of "." and ".."   * FUSE_DONT_MASK: don't apply umask to file mode on create operations + * FUSE_FLOCK_LOCKS: remote locking for BSD style file locks   */  #define FUSE_ASYNC_READ		(1 << 0)  #define FUSE_POSIX_LOCKS	(1 << 1) @@ -163,6 +168,7 @@ struct fuse_file_lock {  #define FUSE_EXPORT_SUPPORT	(1 << 4)  #define FUSE_BIG_WRITES		(1 << 5)  #define FUSE_DONT_MASK		(1 << 6) +#define FUSE_FLOCK_LOCKS	(1 << 10)  /**   * CUSE INIT request/reply flags @@ -175,6 +181,7 @@ struct fuse_file_lock {   * Release flags   */  #define FUSE_RELEASE_FLUSH	(1 << 0) +#define FUSE_RELEASE_FLOCK_UNLOCK	(1 << 1)  /**   * Getattr flags diff --git a/include/linux/personality.h b/include/linux/personality.h index eec3bae164d..8fc7dd1a57f 100644 --- a/include/linux/personality.h +++ b/include/linux/personality.h @@ -22,6 +22,7 @@ extern int		__set_personality(unsigned int);   * These occupy the top three bytes.   */  enum { +	UNAME26	=               0x0020000,  	ADDR_NO_RANDOMIZE = 	0x0040000,	/* disable randomization of VA space */  	FDPIC_FUNCPTRS =	0x0080000,	/* userspace function ptrs point to descriptors  						 * (signal handling) diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h index 5e3e25a3c9c..63d2df43e61 100644 --- a/include/linux/pwm_backlight.h +++ b/include/linux/pwm_backlight.h @@ -14,6 +14,7 @@ struct platform_pwm_backlight_data {  	unsigned int pwm_period_ns;  	int (*init)(struct device *dev);  	int (*notify)(struct device *dev, int brightness); +	void (*notify_after)(struct device *dev, int brightness);  	void (*exit)(struct device *dev);  	int (*check_fb)(struct device *dev, struct fb_info *info);  }; diff --git a/include/linux/rio_regs.h b/include/linux/rio_regs.h index 9026b30238f..218168a2b5e 100644 --- a/include/linux/rio_regs.h +++ b/include/linux/rio_regs.h @@ -36,12 +36,12 @@  #define  RIO_PEF_PROCESSOR		0x20000000	/* [I] Processor */  #define  RIO_PEF_SWITCH			0x10000000	/* [I] Switch */  #define  RIO_PEF_MULTIPORT		0x08000000	/* [VI, 2.1] Multiport */ -#define  RIO_PEF_INB_MBOX		0x00f00000	/* [II] Mailboxes */ -#define  RIO_PEF_INB_MBOX0		0x00800000	/* [II] Mailbox 0 */ -#define  RIO_PEF_INB_MBOX1		0x00400000	/* [II] Mailbox 1 */ -#define  RIO_PEF_INB_MBOX2		0x00200000	/* [II] Mailbox 2 */ -#define  RIO_PEF_INB_MBOX3		0x00100000	/* [II] Mailbox 3 */ -#define  RIO_PEF_INB_DOORBELL		0x00080000	/* [II] Doorbells */ +#define  RIO_PEF_INB_MBOX		0x00f00000	/* [II, <= 1.2] Mailboxes */ +#define  RIO_PEF_INB_MBOX0		0x00800000	/* [II, <= 1.2] Mailbox 0 */ +#define  RIO_PEF_INB_MBOX1		0x00400000	/* [II, <= 1.2] Mailbox 1 */ +#define  RIO_PEF_INB_MBOX2		0x00200000	/* [II, <= 1.2] Mailbox 2 */ +#define  RIO_PEF_INB_MBOX3		0x00100000	/* [II, <= 1.2] Mailbox 3 */ +#define  RIO_PEF_INB_DOORBELL		0x00080000	/* [II, <= 1.2] Doorbells */  #define  RIO_PEF_EXT_RT			0x00000200	/* [III, 1.3] Extended route table support */  #define  RIO_PEF_STD_RT			0x00000100	/* [III, 1.3] Standard route table support */  #define  RIO_PEF_CTLS			0x00000010	/* [III] CTLS */ @@ -102,7 +102,7 @@  #define	RIO_SWITCH_RT_LIMIT	0x34	/* [III, 1.3] Switch Route Table Destination ID Limit CAR */  #define	 RIO_RT_MAX_DESTID		0x0000ffff -#define RIO_MBOX_CSR		0x40	/* [II] Mailbox CSR */ +#define RIO_MBOX_CSR		0x40	/* [II, <= 1.2] Mailbox CSR */  #define  RIO_MBOX0_AVAIL		0x80000000	/* [II] Mbox 0 avail */  #define  RIO_MBOX0_FULL			0x40000000	/* [II] Mbox 0 full */  #define  RIO_MBOX0_EMPTY		0x20000000	/* [II] Mbox 0 empty */ @@ -128,8 +128,8 @@  #define  RIO_MBOX3_FAIL			0x00000008	/* [II] Mbox 3 fail */  #define  RIO_MBOX3_ERROR		0x00000004	/* [II] Mbox 3 error */ -#define RIO_WRITE_PORT_CSR	0x44	/* [I] Write Port CSR */ -#define RIO_DOORBELL_CSR	0x44	/* [II] Doorbell CSR */ +#define RIO_WRITE_PORT_CSR	0x44	/* [I, <= 1.2] Write Port CSR */ +#define RIO_DOORBELL_CSR	0x44	/* [II, <= 1.2] Doorbell CSR */  #define  RIO_DOORBELL_AVAIL		0x80000000	/* [II] Doorbell avail */  #define  RIO_DOORBELL_FULL		0x40000000	/* [II] Doorbell full */  #define  RIO_DOORBELL_EMPTY		0x20000000	/* [II] Doorbell empty */ diff --git a/include/linux/ti_wilink_st.h b/include/linux/ti_wilink_st.h index b004e557caa..2ef4385da6b 100644 --- a/include/linux/ti_wilink_st.h +++ b/include/linux/ti_wilink_st.h @@ -410,7 +410,28 @@ struct gps_event_hdr {  	u16 plen;  } __attribute__ ((packed)); -/* platform data */ +/** + * struct ti_st_plat_data - platform data shared between ST driver and + *	platform specific board file which adds the ST device. + * @nshutdown_gpio: Host's GPIO line to which chip's BT_EN is connected. + * @dev_name: The UART/TTY name to which chip is interfaced. (eg: /dev/ttyS1) + * @flow_cntrl: Should always be 1, since UART's CTS/RTS is used for PM + *	purposes. + * @baud_rate: The baud rate supported by the Host UART controller, this will + *	be shared across with the chip via a HCI VS command from User-Space Init + *	Mgr application. + * @suspend: + * @resume: legacy PM routines hooked to platform specific board file, so as + *	to take chip-host interface specific action. + * @chip_enable: + * @chip_disable: Platform/Interface specific mux mode setting, GPIO + *	configuring, Host side PM disabling etc.. can be done here. + * @chip_asleep: + * @chip_awake: Chip specific deep sleep states is communicated to Host + *	specific board-xx.c to take actions such as cut UART clocks when chip + *	asleep or run host faster when chip awake etc.. + * + */  struct ti_st_plat_data {  	long nshutdown_gpio;  	unsigned char dev_name[UART_DEV_NAME_LEN]; /* uart name */ @@ -418,6 +439,10 @@ struct ti_st_plat_data {  	unsigned long baud_rate;  	int (*suspend)(struct platform_device *, pm_message_t);  	int (*resume)(struct platform_device *); +	int (*chip_enable) (struct kim_data_s *); +	int (*chip_disable) (struct kim_data_s *); +	int (*chip_asleep) (struct kim_data_s *); +	int (*chip_awake) (struct kim_data_s *);  };  #endif /* TI_WILINK_ST_H */ diff --git a/include/linux/tty.h b/include/linux/tty.h index 44bc0c5617e..5f2ede82b3d 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -421,6 +421,8 @@ extern void tty_driver_flush_buffer(struct tty_struct *tty);  extern void tty_throttle(struct tty_struct *tty);  extern void tty_unthrottle(struct tty_struct *tty);  extern int tty_do_resize(struct tty_struct *tty, struct winsize *ws); +extern void tty_driver_remove_tty(struct tty_driver *driver, +				  struct tty_struct *tty);  extern void tty_shutdown(struct tty_struct *tty);  extern void tty_free_termios(struct tty_struct *tty);  extern int is_current_pgrp_orphaned(void); diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index 9deeac85524..ecdaeb98b29 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h @@ -47,6 +47,9 @@   *   * 	This routine is called synchronously when a particular tty device   *	is closed for the last time freeing up the resources. + *	Note that tty_shutdown() is not called if ops->shutdown is defined. + *	This means one is responsible to take care of calling ops->remove (e.g. + *	via tty_driver_remove_tty) and releasing tty->termios.   *   *   * void (*cleanup)(struct tty_struct * tty); diff --git a/include/linux/writeback.h b/include/linux/writeback.h index f1bfa12ea24..2b8963ff0f3 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -12,15 +12,6 @@   *   *	(thresh - thresh/DIRTY_FULL_SCOPE, thresh)   * - * The 1/16 region above the global dirty limit will be put to maximum pauses: - * - *	(limit, limit + limit/DIRTY_MAXPAUSE_AREA) - * - * The 1/16 region above the max-pause region, dirty exceeded bdi's will be put - * to loops: - * - *	(limit + limit/DIRTY_MAXPAUSE_AREA, limit + limit/DIRTY_PASSGOOD_AREA) - *   * Further beyond, all dirtier tasks will enter a loop waiting (possibly long   * time) for the dirty pages to drop, unless written enough pages.   * @@ -31,8 +22,6 @@   */  #define DIRTY_SCOPE		8  #define DIRTY_FULL_SCOPE	(DIRTY_SCOPE / 2) -#define DIRTY_MAXPAUSE_AREA		16 -#define DIRTY_PASSGOOD_AREA		8  /*   * 4MB minimal write chunk size diff --git a/include/target/target_core_fabric_ops.h b/include/target/target_core_fabric_ops.h index 2de8fe90759..126c675f4f1 100644 --- a/include/target/target_core_fabric_ops.h +++ b/include/target/target_core_fabric_ops.h @@ -27,6 +27,12 @@ struct target_core_fabric_ops {  	int (*tpg_check_demo_mode_cache)(struct se_portal_group *);  	int (*tpg_check_demo_mode_write_protect)(struct se_portal_group *);  	int (*tpg_check_prod_mode_write_protect)(struct se_portal_group *); +	/* +	 * Optionally used by fabrics to allow demo-mode login, but not +	 * expose any TPG LUNs, and return 'not connected' in standard +	 * inquiry response +	 */ +	int (*tpg_check_demo_mode_login_only)(struct se_portal_group *);  	struct se_node_acl *(*tpg_alloc_fabric_acl)(  					struct se_portal_group *);  	void (*tpg_release_fabric_acl)(struct se_portal_group *,  |