diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ide.h | 40 | ||||
| -rw-r--r-- | include/linux/ieee80211.h | 13 | ||||
| -rw-r--r-- | include/linux/interrupt.h | 29 | ||||
| -rw-r--r-- | include/linux/kexec.h | 4 | ||||
| -rw-r--r-- | include/linux/netdevice.h | 4 | ||||
| -rw-r--r-- | include/linux/pm_qos_params.h | 2 | ||||
| -rw-r--r-- | include/linux/spi/orion_spi.h | 17 |
7 files changed, 53 insertions, 56 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index b846bc44a27e..87c12ed96954 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
| @@ -219,18 +219,7 @@ static inline int __ide_default_irq(unsigned long base) | |||
| 219 | #include <asm-generic/ide_iops.h> | 219 | #include <asm-generic/ide_iops.h> |
| 220 | #endif | 220 | #endif |
| 221 | 221 | ||
| 222 | #ifndef MAX_HWIFS | 222 | #define MAX_HWIFS 10 |
| 223 | #if defined(CONFIG_BLACKFIN) || defined(CONFIG_H8300) || defined(CONFIG_XTENSA) | ||
| 224 | # define MAX_HWIFS 1 | ||
| 225 | #else | ||
| 226 | # define MAX_HWIFS 10 | ||
| 227 | #endif | ||
| 228 | #endif | ||
| 229 | |||
| 230 | #if !defined(MAX_HWIFS) || defined(CONFIG_EMBEDDED) | ||
| 231 | #undef MAX_HWIFS | ||
| 232 | #define MAX_HWIFS CONFIG_IDE_MAX_HWIFS | ||
| 233 | #endif | ||
| 234 | 223 | ||
| 235 | /* Currently only m68k, apus and m8xx need it */ | 224 | /* Currently only m68k, apus and m8xx need it */ |
| 236 | #ifndef IDE_ARCH_ACK_INTR | 225 | #ifndef IDE_ARCH_ACK_INTR |
| @@ -509,24 +498,33 @@ struct ide_tp_ops { | |||
| 509 | 498 | ||
| 510 | extern const struct ide_tp_ops default_tp_ops; | 499 | extern const struct ide_tp_ops default_tp_ops; |
| 511 | 500 | ||
| 501 | /** | ||
| 502 | * struct ide_port_ops - IDE port operations | ||
| 503 | * | ||
| 504 | * @init_dev: host specific initialization of a device | ||
| 505 | * @set_pio_mode: routine to program host for PIO mode | ||
| 506 | * @set_dma_mode: routine to program host for DMA mode | ||
| 507 | * @selectproc: tweaks hardware to select drive | ||
| 508 | * @reset_poll: chipset polling based on hba specifics | ||
| 509 | * @pre_reset: chipset specific changes to default for device-hba resets | ||
| 510 | * @resetproc: routine to reset controller after a disk reset | ||
| 511 | * @maskproc: special host masking for drive selection | ||
| 512 | * @quirkproc: check host's drive quirk list | ||
| 513 | * | ||
| 514 | * @mdma_filter: filter MDMA modes | ||
| 515 | * @udma_filter: filter UDMA modes | ||
| 516 | * | ||
| 517 | * @cable_detect: detect cable type | ||
| 518 | */ | ||
| 512 | struct ide_port_ops { | 519 | struct ide_port_ops { |
| 513 | /* host specific initialization of a device */ | ||
| 514 | void (*init_dev)(ide_drive_t *); | 520 | void (*init_dev)(ide_drive_t *); |
| 515 | /* routine to program host for PIO mode */ | ||
| 516 | void (*set_pio_mode)(ide_drive_t *, const u8); | 521 | void (*set_pio_mode)(ide_drive_t *, const u8); |
| 517 | /* routine to program host for DMA mode */ | ||
| 518 | void (*set_dma_mode)(ide_drive_t *, const u8); | 522 | void (*set_dma_mode)(ide_drive_t *, const u8); |
| 519 | /* tweaks hardware to select drive */ | ||
| 520 | void (*selectproc)(ide_drive_t *); | 523 | void (*selectproc)(ide_drive_t *); |
| 521 | /* chipset polling based on hba specifics */ | ||
| 522 | int (*reset_poll)(ide_drive_t *); | 524 | int (*reset_poll)(ide_drive_t *); |
| 523 | /* chipset specific changes to default for device-hba resets */ | ||
| 524 | void (*pre_reset)(ide_drive_t *); | 525 | void (*pre_reset)(ide_drive_t *); |
| 525 | /* routine to reset controller after a disk reset */ | ||
| 526 | void (*resetproc)(ide_drive_t *); | 526 | void (*resetproc)(ide_drive_t *); |
| 527 | /* special host masking for drive selection */ | ||
| 528 | void (*maskproc)(ide_drive_t *, int); | 527 | void (*maskproc)(ide_drive_t *, int); |
| 529 | /* check host's drive quirk list */ | ||
| 530 | void (*quirkproc)(ide_drive_t *); | 528 | void (*quirkproc)(ide_drive_t *); |
| 531 | 529 | ||
| 532 | u8 (*mdma_filter)(ide_drive_t *); | 530 | u8 (*mdma_filter)(ide_drive_t *); |
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index a1630ba0b87c..7f4df7c7659d 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h | |||
| @@ -506,6 +506,19 @@ struct ieee80211_channel_sw_ie { | |||
| 506 | u8 count; | 506 | u8 count; |
| 507 | } __attribute__ ((packed)); | 507 | } __attribute__ ((packed)); |
| 508 | 508 | ||
| 509 | /** | ||
| 510 | * struct ieee80211_tim | ||
| 511 | * | ||
| 512 | * This structure refers to "Traffic Indication Map information element" | ||
| 513 | */ | ||
| 514 | struct ieee80211_tim_ie { | ||
| 515 | u8 dtim_count; | ||
| 516 | u8 dtim_period; | ||
| 517 | u8 bitmap_ctrl; | ||
| 518 | /* variable size: 1 - 251 bytes */ | ||
| 519 | u8 virtual_map[0]; | ||
| 520 | } __attribute__ ((packed)); | ||
| 521 | |||
| 509 | struct ieee80211_mgmt { | 522 | struct ieee80211_mgmt { |
| 510 | __le16 frame_control; | 523 | __le16 frame_control; |
| 511 | __le16 duration; | 524 | __le16 duration; |
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 62aa4f895abe..58ff4e74b2f3 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
| @@ -223,35 +223,6 @@ static inline int disable_irq_wake(unsigned int irq) | |||
| 223 | #define or_softirq_pending(x) (local_softirq_pending() |= (x)) | 223 | #define or_softirq_pending(x) (local_softirq_pending() |= (x)) |
| 224 | #endif | 224 | #endif |
| 225 | 225 | ||
| 226 | /* | ||
| 227 | * Temporary defines for UP kernels, until all code gets fixed. | ||
| 228 | */ | ||
| 229 | #ifndef CONFIG_SMP | ||
| 230 | static inline void __deprecated cli(void) | ||
| 231 | { | ||
| 232 | local_irq_disable(); | ||
| 233 | } | ||
| 234 | static inline void __deprecated sti(void) | ||
| 235 | { | ||
| 236 | local_irq_enable(); | ||
| 237 | } | ||
| 238 | static inline void __deprecated save_flags(unsigned long *x) | ||
| 239 | { | ||
| 240 | local_save_flags(*x); | ||
| 241 | } | ||
| 242 | #define save_flags(x) save_flags(&x) | ||
| 243 | static inline void __deprecated restore_flags(unsigned long x) | ||
| 244 | { | ||
| 245 | local_irq_restore(x); | ||
| 246 | } | ||
| 247 | |||
| 248 | static inline void __deprecated save_and_cli(unsigned long *x) | ||
| 249 | { | ||
| 250 | local_irq_save(*x); | ||
| 251 | } | ||
| 252 | #define save_and_cli(x) save_and_cli(&x) | ||
| 253 | #endif /* CONFIG_SMP */ | ||
| 254 | |||
| 255 | /* Some architectures might implement lazy enabling/disabling of | 226 | /* Some architectures might implement lazy enabling/disabling of |
| 256 | * interrupts. In some cases, such as stop_machine, we might want | 227 | * interrupts. In some cases, such as stop_machine, we might want |
| 257 | * to ensure that after a local_irq_disable(), interrupts have | 228 | * to ensure that after a local_irq_disable(), interrupts have |
diff --git a/include/linux/kexec.h b/include/linux/kexec.h index 82f88a8a827b..32110cede64f 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h | |||
| @@ -130,8 +130,8 @@ void vmcoreinfo_append_str(const char *fmt, ...) | |||
| 130 | __attribute__ ((format (printf, 1, 2))); | 130 | __attribute__ ((format (printf, 1, 2))); |
| 131 | unsigned long paddr_vmcoreinfo_note(void); | 131 | unsigned long paddr_vmcoreinfo_note(void); |
| 132 | 132 | ||
| 133 | #define VMCOREINFO_OSRELEASE(name) \ | 133 | #define VMCOREINFO_OSRELEASE(value) \ |
| 134 | vmcoreinfo_append_str("OSRELEASE=%s\n", #name) | 134 | vmcoreinfo_append_str("OSRELEASE=%s\n", value) |
| 135 | #define VMCOREINFO_PAGESIZE(value) \ | 135 | #define VMCOREINFO_PAGESIZE(value) \ |
| 136 | vmcoreinfo_append_str("PAGESIZE=%ld\n", value) | 136 | vmcoreinfo_append_str("PAGESIZE=%ld\n", value) |
| 137 | #define VMCOREINFO_SYMBOL(name) \ | 137 | #define VMCOREINFO_SYMBOL(name) \ |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index ee583f642a9f..488c56e649b5 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -61,9 +61,7 @@ struct wireless_dev; | |||
| 61 | #define NET_XMIT_DROP 1 /* skb dropped */ | 61 | #define NET_XMIT_DROP 1 /* skb dropped */ |
| 62 | #define NET_XMIT_CN 2 /* congestion notification */ | 62 | #define NET_XMIT_CN 2 /* congestion notification */ |
| 63 | #define NET_XMIT_POLICED 3 /* skb is shot by police */ | 63 | #define NET_XMIT_POLICED 3 /* skb is shot by police */ |
| 64 | #define NET_XMIT_BYPASS 4 /* packet does not leave via dequeue; | 64 | #define NET_XMIT_MASK 0xFFFF /* qdisc flags in net/sch_generic.h */ |
| 65 | (TC use only - dev_queue_xmit | ||
| 66 | returns this as NET_XMIT_SUCCESS) */ | ||
| 67 | 65 | ||
| 68 | /* Backlog congestion levels */ | 66 | /* Backlog congestion levels */ |
| 69 | #define NET_RX_SUCCESS 0 /* keep 'em coming, baby */ | 67 | #define NET_RX_SUCCESS 0 /* keep 'em coming, baby */ |
diff --git a/include/linux/pm_qos_params.h b/include/linux/pm_qos_params.h index 2e4e97bd19f7..d74f75ed1e47 100644 --- a/include/linux/pm_qos_params.h +++ b/include/linux/pm_qos_params.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* interface for the pm_qos_power infrastructure of the linux kernel. | 1 | /* interface for the pm_qos_power infrastructure of the linux kernel. |
| 2 | * | 2 | * |
| 3 | * Mark Gross | 3 | * Mark Gross <mgross@linux.intel.com> |
| 4 | */ | 4 | */ |
| 5 | #include <linux/list.h> | 5 | #include <linux/list.h> |
| 6 | #include <linux/notifier.h> | 6 | #include <linux/notifier.h> |
diff --git a/include/linux/spi/orion_spi.h b/include/linux/spi/orion_spi.h new file mode 100644 index 000000000000..b4d9fa6f797c --- /dev/null +++ b/include/linux/spi/orion_spi.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* | ||
| 2 | * orion_spi.h | ||
| 3 | * | ||
| 4 | * This file is licensed under the terms of the GNU General Public | ||
| 5 | * License version 2. This program is licensed "as is" without any | ||
| 6 | * warranty of any kind, whether express or implied. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifndef __LINUX_SPI_ORION_SPI_H | ||
| 10 | #define __LINUX_SPI_ORION_SPI_H | ||
| 11 | |||
| 12 | struct orion_spi_info { | ||
| 13 | u32 tclk; /* no <linux/clk.h> support yet */ | ||
| 14 | }; | ||
| 15 | |||
| 16 | |||
| 17 | #endif | ||
