diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/acpi/actbl.h | 1 | ||||
| -rw-r--r-- | include/asm-powerpc/ucc_fast.h | 3 | ||||
| -rw-r--r-- | include/linux/ata.h | 10 | ||||
| -rw-r--r-- | include/linux/fsl_devices.h | 39 | ||||
| -rw-r--r-- | include/linux/hdlc.h | 3 | ||||
| -rw-r--r-- | include/linux/ioport.h | 1 | ||||
| -rw-r--r-- | include/linux/libata.h | 78 | ||||
| -rw-r--r-- | include/linux/pci.h | 1 | ||||
| -rw-r--r-- | include/linux/pci_ids.h | 3 | ||||
| -rw-r--r-- | include/linux/phy.h | 1 | ||||
| -rw-r--r-- | include/linux/sony-laptop.h | 34 | ||||
| -rw-r--r-- | include/linux/wireless.h | 2 | ||||
| -rw-r--r-- | include/net/ieee80211.h | 4 | ||||
| -rw-r--r-- | include/net/ieee80211_crypt.h | 4 | ||||
| -rw-r--r-- | include/net/ieee80211_radiotap.h | 77 |
15 files changed, 149 insertions, 112 deletions
diff --git a/include/acpi/actbl.h b/include/acpi/actbl.h index 09469e7db6a5..955adfb8d64c 100644 --- a/include/acpi/actbl.h +++ b/include/acpi/actbl.h | |||
| @@ -276,6 +276,7 @@ enum acpi_prefered_pm_profiles { | |||
| 276 | 276 | ||
| 277 | #define BAF_LEGACY_DEVICES 0x0001 | 277 | #define BAF_LEGACY_DEVICES 0x0001 |
| 278 | #define BAF_8042_KEYBOARD_CONTROLLER 0x0002 | 278 | #define BAF_8042_KEYBOARD_CONTROLLER 0x0002 |
| 279 | #define BAF_MSI_NOT_SUPPORTED 0x0008 | ||
| 279 | 280 | ||
| 280 | #define FADT2_REVISION_ID 3 | 281 | #define FADT2_REVISION_ID 3 |
| 281 | #define FADT2_MINUS_REVISION_ID 2 | 282 | #define FADT2_MINUS_REVISION_ID 2 |
diff --git a/include/asm-powerpc/ucc_fast.h b/include/asm-powerpc/ucc_fast.h index 39d1c90fd2ca..f529f70b1d82 100644 --- a/include/asm-powerpc/ucc_fast.h +++ b/include/asm-powerpc/ucc_fast.h | |||
| @@ -159,6 +159,9 @@ struct ucc_fast_private { | |||
| 159 | struct ucc_fast *uf_regs; /* a pointer to memory map of UCC regs. */ | 159 | struct ucc_fast *uf_regs; /* a pointer to memory map of UCC regs. */ |
| 160 | u32 *p_ucce; /* a pointer to the event register in memory. */ | 160 | u32 *p_ucce; /* a pointer to the event register in memory. */ |
| 161 | u32 *p_uccm; /* a pointer to the mask register in memory. */ | 161 | u32 *p_uccm; /* a pointer to the mask register in memory. */ |
| 162 | #ifdef CONFIG_UGETH_TX_ON_DEMAND | ||
| 163 | u16 *p_utodr; /* pointer to the transmit on demand register */ | ||
| 164 | #endif | ||
| 162 | int enabled_tx; /* Whether channel is enabled for Tx (ENT) */ | 165 | int enabled_tx; /* Whether channel is enabled for Tx (ENT) */ |
| 163 | int enabled_rx; /* Whether channel is enabled for Rx (ENR) */ | 166 | int enabled_rx; /* Whether channel is enabled for Rx (ENR) */ |
| 164 | int stopped_tx; /* Whether channel has been stopped for Tx | 167 | int stopped_tx; /* Whether channel has been stopped for Tx |
diff --git a/include/linux/ata.h b/include/linux/ata.h index 6caeb98e29dd..edb31bfff68f 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h | |||
| @@ -159,11 +159,19 @@ enum { | |||
| 159 | ATA_CMD_INIT_DEV_PARAMS = 0x91, | 159 | ATA_CMD_INIT_DEV_PARAMS = 0x91, |
| 160 | ATA_CMD_READ_NATIVE_MAX = 0xF8, | 160 | ATA_CMD_READ_NATIVE_MAX = 0xF8, |
| 161 | ATA_CMD_READ_NATIVE_MAX_EXT = 0x27, | 161 | ATA_CMD_READ_NATIVE_MAX_EXT = 0x27, |
| 162 | ATA_CMD_SET_MAX = 0xF9, | ||
| 163 | ATA_CMD_SET_MAX_EXT = 0x37, | ||
| 162 | ATA_CMD_READ_LOG_EXT = 0x2f, | 164 | ATA_CMD_READ_LOG_EXT = 0x2f, |
| 163 | 165 | ||
| 164 | /* READ_LOG_EXT pages */ | 166 | /* READ_LOG_EXT pages */ |
| 165 | ATA_LOG_SATA_NCQ = 0x10, | 167 | ATA_LOG_SATA_NCQ = 0x10, |
| 166 | 168 | ||
| 169 | /* READ/WRITE LONG (obsolete) */ | ||
| 170 | ATA_CMD_READ_LONG = 0x22, | ||
| 171 | ATA_CMD_READ_LONG_ONCE = 0x23, | ||
| 172 | ATA_CMD_WRITE_LONG = 0x32, | ||
| 173 | ATA_CMD_WRITE_LONG_ONCE = 0x33, | ||
| 174 | |||
| 167 | /* SETFEATURES stuff */ | 175 | /* SETFEATURES stuff */ |
| 168 | SETFEATURES_XFER = 0x03, | 176 | SETFEATURES_XFER = 0x03, |
| 169 | XFER_UDMA_7 = 0x47, | 177 | XFER_UDMA_7 = 0x47, |
| @@ -194,6 +202,8 @@ enum { | |||
| 194 | SETFEATURES_WC_ON = 0x02, /* Enable write cache */ | 202 | SETFEATURES_WC_ON = 0x02, /* Enable write cache */ |
| 195 | SETFEATURES_WC_OFF = 0x82, /* Disable write cache */ | 203 | SETFEATURES_WC_OFF = 0x82, /* Disable write cache */ |
| 196 | 204 | ||
| 205 | SETFEATURES_SPINUP = 0x07, /* Spin-up drive */ | ||
| 206 | |||
| 197 | /* ATAPI stuff */ | 207 | /* ATAPI stuff */ |
| 198 | ATAPI_PKT_DMA = (1 << 0), | 208 | ATAPI_PKT_DMA = (1 << 0), |
| 199 | ATAPI_DMADIR = (1 << 2), /* ATAPI data dir: | 209 | ATAPI_DMADIR = (1 << 2), /* ATAPI data dir: |
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index abb64c437f6f..73710d617775 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h | |||
| @@ -120,44 +120,5 @@ struct fsl_spi_platform_data { | |||
| 120 | u32 sysclk; | 120 | u32 sysclk; |
| 121 | }; | 121 | }; |
| 122 | 122 | ||
| 123 | /* Ethernet interface (phy management and speed) | ||
| 124 | */ | ||
| 125 | enum enet_interface { | ||
| 126 | ENET_10_MII, /* 10 Base T, MII interface */ | ||
| 127 | ENET_10_RMII, /* 10 Base T, RMII interface */ | ||
| 128 | ENET_10_RGMII, /* 10 Base T, RGMII interface */ | ||
| 129 | ENET_100_MII, /* 100 Base T, MII interface */ | ||
| 130 | ENET_100_RMII, /* 100 Base T, RMII interface */ | ||
| 131 | ENET_100_RGMII, /* 100 Base T, RGMII interface */ | ||
| 132 | ENET_1000_GMII, /* 1000 Base T, GMII interface */ | ||
| 133 | ENET_1000_RGMII, /* 1000 Base T, RGMII interface */ | ||
| 134 | ENET_1000_TBI, /* 1000 Base T, TBI interface */ | ||
| 135 | ENET_1000_RTBI /* 1000 Base T, RTBI interface */ | ||
| 136 | }; | ||
| 137 | |||
| 138 | struct ucc_geth_platform_data { | ||
| 139 | /* device specific information */ | ||
| 140 | u32 device_flags; | ||
| 141 | u32 phy_reg_addr; | ||
| 142 | |||
| 143 | /* board specific information */ | ||
| 144 | u32 board_flags; | ||
| 145 | u8 rx_clock; | ||
| 146 | u8 tx_clock; | ||
| 147 | u32 phy_id; | ||
| 148 | enum enet_interface phy_interface; | ||
| 149 | u32 phy_interrupt; | ||
| 150 | u8 mac_addr[6]; | ||
| 151 | }; | ||
| 152 | |||
| 153 | /* Flags related to UCC Gigabit Ethernet device features */ | ||
| 154 | #define FSL_UGETH_DEV_HAS_GIGABIT 0x00000001 | ||
| 155 | #define FSL_UGETH_DEV_HAS_COALESCE 0x00000002 | ||
| 156 | #define FSL_UGETH_DEV_HAS_RMON 0x00000004 | ||
| 157 | |||
| 158 | /* Flags in ucc_geth_platform_data */ | ||
| 159 | #define FSL_UGETH_BRD_HAS_PHY_INTR 0x00000001 | ||
| 160 | /* if not set use a timer */ | ||
| 161 | |||
| 162 | #endif /* _FSL_DEVICE_H_ */ | 123 | #endif /* _FSL_DEVICE_H_ */ |
| 163 | #endif /* __KERNEL__ */ | 124 | #endif /* __KERNEL__ */ |
diff --git a/include/linux/hdlc.h b/include/linux/hdlc.h index 0fe562af9c8c..db390c511ada 100644 --- a/include/linux/hdlc.h +++ b/include/linux/hdlc.h | |||
| @@ -43,8 +43,7 @@ struct hdlc_proto { | |||
| 43 | void (*stop)(struct net_device *dev); /* if open & !DCD */ | 43 | void (*stop)(struct net_device *dev); /* if open & !DCD */ |
| 44 | void (*detach)(struct net_device *dev); | 44 | void (*detach)(struct net_device *dev); |
| 45 | int (*ioctl)(struct net_device *dev, struct ifreq *ifr); | 45 | int (*ioctl)(struct net_device *dev, struct ifreq *ifr); |
| 46 | unsigned short (*type_trans)(struct sk_buff *skb, | 46 | __be16 (*type_trans)(struct sk_buff *skb, struct net_device *dev); |
| 47 | struct net_device *dev); | ||
| 48 | struct module *module; | 47 | struct module *module; |
| 49 | struct hdlc_proto *next; /* next protocol in the list */ | 48 | struct hdlc_proto *next; /* next protocol in the list */ |
| 50 | }; | 49 | }; |
diff --git a/include/linux/ioport.h b/include/linux/ioport.h index 6859a3b14088..71ea92319241 100644 --- a/include/linux/ioport.h +++ b/include/linux/ioport.h | |||
| @@ -99,7 +99,6 @@ extern struct resource ioport_resource; | |||
| 99 | extern struct resource iomem_resource; | 99 | extern struct resource iomem_resource; |
| 100 | 100 | ||
| 101 | extern int request_resource(struct resource *root, struct resource *new); | 101 | extern int request_resource(struct resource *root, struct resource *new); |
| 102 | extern struct resource * ____request_resource(struct resource *root, struct resource *new); | ||
| 103 | extern int release_resource(struct resource *new); | 102 | extern int release_resource(struct resource *new); |
| 104 | extern int insert_resource(struct resource *parent, struct resource *new); | 103 | extern int insert_resource(struct resource *parent, struct resource *new); |
| 105 | extern int allocate_resource(struct resource *root, struct resource *new, | 104 | extern int allocate_resource(struct resource *root, struct resource *new, |
diff --git a/include/linux/libata.h b/include/linux/libata.h index 0cfbcb6f08eb..d8cfc72ea9c1 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
| @@ -210,6 +210,7 @@ enum { | |||
| 210 | 210 | ||
| 211 | /* host set flags */ | 211 | /* host set flags */ |
| 212 | ATA_HOST_SIMPLEX = (1 << 0), /* Host is simplex, one DMA channel per host only */ | 212 | ATA_HOST_SIMPLEX = (1 << 0), /* Host is simplex, one DMA channel per host only */ |
| 213 | ATA_HOST_STARTED = (1 << 1), /* Host started */ | ||
| 213 | 214 | ||
| 214 | /* various lengths of time */ | 215 | /* various lengths of time */ |
| 215 | ATA_TMOUT_BOOT = 30 * HZ, /* heuristic */ | 216 | ATA_TMOUT_BOOT = 30 * HZ, /* heuristic */ |
| @@ -281,11 +282,13 @@ enum { | |||
| 281 | ATA_EHI_NO_AUTOPSY = (1 << 2), /* no autopsy */ | 282 | ATA_EHI_NO_AUTOPSY = (1 << 2), /* no autopsy */ |
| 282 | ATA_EHI_QUIET = (1 << 3), /* be quiet */ | 283 | ATA_EHI_QUIET = (1 << 3), /* be quiet */ |
| 283 | 284 | ||
| 284 | ATA_EHI_DID_RESET = (1 << 16), /* already reset this port */ | 285 | ATA_EHI_DID_SOFTRESET = (1 << 16), /* already soft-reset this port */ |
| 285 | ATA_EHI_PRINTINFO = (1 << 17), /* print configuration info */ | 286 | ATA_EHI_DID_HARDRESET = (1 << 17), /* already soft-reset this port */ |
| 286 | ATA_EHI_SETMODE = (1 << 18), /* configure transfer mode */ | 287 | ATA_EHI_PRINTINFO = (1 << 18), /* print configuration info */ |
| 287 | ATA_EHI_POST_SETMODE = (1 << 19), /* revaildating after setmode */ | 288 | ATA_EHI_SETMODE = (1 << 19), /* configure transfer mode */ |
| 289 | ATA_EHI_POST_SETMODE = (1 << 20), /* revaildating after setmode */ | ||
| 288 | 290 | ||
| 291 | ATA_EHI_DID_RESET = ATA_EHI_DID_SOFTRESET | ATA_EHI_DID_HARDRESET, | ||
| 289 | ATA_EHI_RESET_MODIFIER_MASK = ATA_EHI_RESUME_LINK, | 292 | ATA_EHI_RESET_MODIFIER_MASK = ATA_EHI_RESUME_LINK, |
| 290 | 293 | ||
| 291 | /* max repeat if error condition is still set after ->error_handler */ | 294 | /* max repeat if error condition is still set after ->error_handler */ |
| @@ -367,34 +370,6 @@ struct ata_ioports { | |||
| 367 | void __iomem *scr_addr; | 370 | void __iomem *scr_addr; |
| 368 | }; | 371 | }; |
| 369 | 372 | ||
| 370 | struct ata_probe_ent { | ||
| 371 | struct list_head node; | ||
| 372 | struct device *dev; | ||
| 373 | const struct ata_port_operations *port_ops; | ||
| 374 | struct scsi_host_template *sht; | ||
| 375 | struct ata_ioports port[ATA_MAX_PORTS]; | ||
| 376 | unsigned int n_ports; | ||
| 377 | unsigned int dummy_port_mask; | ||
| 378 | unsigned int pio_mask; | ||
| 379 | unsigned int mwdma_mask; | ||
| 380 | unsigned int udma_mask; | ||
| 381 | unsigned long irq; | ||
| 382 | unsigned long irq2; | ||
| 383 | unsigned int irq_flags; | ||
| 384 | unsigned long port_flags; | ||
| 385 | unsigned long _host_flags; | ||
| 386 | void __iomem * const *iomap; | ||
| 387 | void *private_data; | ||
| 388 | |||
| 389 | /* port_info for the secondary port. Together with irq2, it's | ||
| 390 | * used to implement non-uniform secondary port. Currently, | ||
| 391 | * the only user is ata_piix combined mode. This workaround | ||
| 392 | * will be removed together with ata_probe_ent when init model | ||
| 393 | * is updated. | ||
| 394 | */ | ||
| 395 | const struct ata_port_info *pinfo2; | ||
| 396 | }; | ||
| 397 | |||
| 398 | struct ata_host { | 373 | struct ata_host { |
| 399 | spinlock_t lock; | 374 | spinlock_t lock; |
| 400 | struct device *dev; | 375 | struct device *dev; |
| @@ -427,6 +402,7 @@ struct ata_queued_cmd { | |||
| 427 | int dma_dir; | 402 | int dma_dir; |
| 428 | 403 | ||
| 429 | unsigned int pad_len; | 404 | unsigned int pad_len; |
| 405 | unsigned int sect_size; | ||
| 430 | 406 | ||
| 431 | unsigned int nbytes; | 407 | unsigned int nbytes; |
| 432 | unsigned int curbytes; | 408 | unsigned int curbytes; |
| @@ -472,6 +448,7 @@ struct ata_device { | |||
| 472 | struct scsi_device *sdev; /* attached SCSI device */ | 448 | struct scsi_device *sdev; /* attached SCSI device */ |
| 473 | /* n_sector is used as CLEAR_OFFSET, read comment above CLEAR_OFFSET */ | 449 | /* n_sector is used as CLEAR_OFFSET, read comment above CLEAR_OFFSET */ |
| 474 | u64 n_sectors; /* size of device, if ATA */ | 450 | u64 n_sectors; /* size of device, if ATA */ |
| 451 | u64 n_sectors_boot; /* size of ATA device at startup */ | ||
| 475 | unsigned int class; /* ATA_DEV_xxx */ | 452 | unsigned int class; /* ATA_DEV_xxx */ |
| 476 | u16 id[ATA_ID_WORDS]; /* IDENTIFY xxx DEVICE data */ | 453 | u16 id[ATA_ID_WORDS]; /* IDENTIFY xxx DEVICE data */ |
| 477 | u8 pio_mode; | 454 | u8 pio_mode; |
| @@ -597,11 +574,11 @@ struct ata_port { | |||
| 597 | struct ata_port_operations { | 574 | struct ata_port_operations { |
| 598 | void (*port_disable) (struct ata_port *); | 575 | void (*port_disable) (struct ata_port *); |
| 599 | 576 | ||
| 600 | void (*dev_config) (struct ata_port *, struct ata_device *); | 577 | void (*dev_config) (struct ata_device *); |
| 601 | 578 | ||
| 602 | void (*set_piomode) (struct ata_port *, struct ata_device *); | 579 | void (*set_piomode) (struct ata_port *, struct ata_device *); |
| 603 | void (*set_dmamode) (struct ata_port *, struct ata_device *); | 580 | void (*set_dmamode) (struct ata_port *, struct ata_device *); |
| 604 | unsigned long (*mode_filter) (const struct ata_port *, struct ata_device *, unsigned long); | 581 | unsigned long (*mode_filter) (struct ata_device *, unsigned long); |
| 605 | 582 | ||
| 606 | void (*tf_load) (struct ata_port *ap, const struct ata_taskfile *tf); | 583 | void (*tf_load) (struct ata_port *ap, const struct ata_taskfile *tf); |
| 607 | void (*tf_read) (struct ata_port *ap, struct ata_taskfile *tf); | 584 | void (*tf_read) (struct ata_port *ap, struct ata_taskfile *tf); |
| @@ -616,6 +593,8 @@ struct ata_port_operations { | |||
| 616 | 593 | ||
| 617 | void (*post_set_mode) (struct ata_port *ap); | 594 | void (*post_set_mode) (struct ata_port *ap); |
| 618 | 595 | ||
| 596 | int (*cable_detect) (struct ata_port *ap); | ||
| 597 | |||
| 619 | int (*check_atapi_dma) (struct ata_queued_cmd *qc); | 598 | int (*check_atapi_dma) (struct ata_queued_cmd *qc); |
| 620 | 599 | ||
| 621 | void (*bmdma_setup) (struct ata_queued_cmd *qc); | 600 | void (*bmdma_setup) (struct ata_queued_cmd *qc); |
| @@ -664,6 +643,7 @@ struct ata_port_info { | |||
| 664 | unsigned long mwdma_mask; | 643 | unsigned long mwdma_mask; |
| 665 | unsigned long udma_mask; | 644 | unsigned long udma_mask; |
| 666 | const struct ata_port_operations *port_ops; | 645 | const struct ata_port_operations *port_ops; |
| 646 | irq_handler_t irq_handler; | ||
| 667 | void *private_data; | 647 | void *private_data; |
| 668 | }; | 648 | }; |
| 669 | 649 | ||
| @@ -686,6 +666,7 @@ extern const unsigned long sata_deb_timing_hotplug[]; | |||
| 686 | extern const unsigned long sata_deb_timing_long[]; | 666 | extern const unsigned long sata_deb_timing_long[]; |
| 687 | 667 | ||
| 688 | extern const struct ata_port_operations ata_dummy_port_ops; | 668 | extern const struct ata_port_operations ata_dummy_port_ops; |
| 669 | extern const struct ata_port_info ata_dummy_port_info; | ||
| 689 | 670 | ||
| 690 | static inline const unsigned long * | 671 | static inline const unsigned long * |
| 691 | sata_ehc_deb_timing(struct ata_eh_context *ehc) | 672 | sata_ehc_deb_timing(struct ata_eh_context *ehc) |
| @@ -701,6 +682,7 @@ static inline int ata_port_is_dummy(struct ata_port *ap) | |||
| 701 | return ap->ops == &ata_dummy_port_ops; | 682 | return ap->ops == &ata_dummy_port_ops; |
| 702 | } | 683 | } |
| 703 | 684 | ||
| 685 | extern void sata_print_link_status(struct ata_port *ap); | ||
| 704 | extern void ata_port_probe(struct ata_port *); | 686 | extern void ata_port_probe(struct ata_port *); |
| 705 | extern void __sata_phy_reset(struct ata_port *ap); | 687 | extern void __sata_phy_reset(struct ata_port *ap); |
| 706 | extern void sata_phy_reset(struct ata_port *ap); | 688 | extern void sata_phy_reset(struct ata_port *ap); |
| @@ -728,7 +710,15 @@ extern int ata_pci_device_resume(struct pci_dev *pdev); | |||
| 728 | #endif | 710 | #endif |
| 729 | extern int ata_pci_clear_simplex(struct pci_dev *pdev); | 711 | extern int ata_pci_clear_simplex(struct pci_dev *pdev); |
| 730 | #endif /* CONFIG_PCI */ | 712 | #endif /* CONFIG_PCI */ |
| 731 | extern int ata_device_add(const struct ata_probe_ent *ent); | 713 | extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports); |
| 714 | extern struct ata_host *ata_host_alloc_pinfo(struct device *dev, | ||
| 715 | const struct ata_port_info * const * ppi, int n_ports); | ||
| 716 | extern int ata_host_start(struct ata_host *host); | ||
| 717 | extern int ata_host_register(struct ata_host *host, | ||
| 718 | struct scsi_host_template *sht); | ||
| 719 | extern int ata_host_activate(struct ata_host *host, int irq, | ||
| 720 | irq_handler_t irq_handler, unsigned long irq_flags, | ||
| 721 | struct scsi_host_template *sht); | ||
| 732 | extern void ata_host_detach(struct ata_host *host); | 722 | extern void ata_host_detach(struct ata_host *host); |
| 733 | extern void ata_host_init(struct ata_host *, struct device *, | 723 | extern void ata_host_init(struct ata_host *, struct device *, |
| 734 | unsigned long, const struct ata_port_operations *); | 724 | unsigned long, const struct ata_port_operations *); |
| @@ -828,11 +818,17 @@ extern void ata_scsi_slave_destroy(struct scsi_device *sdev); | |||
| 828 | extern int ata_scsi_change_queue_depth(struct scsi_device *sdev, | 818 | extern int ata_scsi_change_queue_depth(struct scsi_device *sdev, |
| 829 | int queue_depth); | 819 | int queue_depth); |
| 830 | extern struct ata_device *ata_dev_pair(struct ata_device *adev); | 820 | extern struct ata_device *ata_dev_pair(struct ata_device *adev); |
| 821 | extern int ata_do_set_mode(struct ata_port *ap, struct ata_device **r_failed_dev); | ||
| 831 | extern u8 ata_irq_on(struct ata_port *ap); | 822 | extern u8 ata_irq_on(struct ata_port *ap); |
| 832 | extern u8 ata_dummy_irq_on(struct ata_port *ap); | 823 | extern u8 ata_dummy_irq_on(struct ata_port *ap); |
| 833 | extern u8 ata_irq_ack(struct ata_port *ap, unsigned int chk_drq); | 824 | extern u8 ata_irq_ack(struct ata_port *ap, unsigned int chk_drq); |
| 834 | extern u8 ata_dummy_irq_ack(struct ata_port *ap, unsigned int chk_drq); | 825 | extern u8 ata_dummy_irq_ack(struct ata_port *ap, unsigned int chk_drq); |
| 835 | 826 | ||
| 827 | extern int ata_cable_40wire(struct ata_port *ap); | ||
| 828 | extern int ata_cable_80wire(struct ata_port *ap); | ||
| 829 | extern int ata_cable_sata(struct ata_port *ap); | ||
| 830 | extern int ata_cable_unknown(struct ata_port *ap); | ||
| 831 | |||
| 836 | /* | 832 | /* |
| 837 | * Timing helpers | 833 | * Timing helpers |
| 838 | */ | 834 | */ |
| @@ -870,10 +866,13 @@ struct pci_bits { | |||
| 870 | unsigned long val; | 866 | unsigned long val; |
| 871 | }; | 867 | }; |
| 872 | 868 | ||
| 873 | extern struct ata_probe_ent * | 869 | extern int ata_pci_init_native_host(struct ata_host *host, |
| 874 | ata_pci_init_native_mode(struct pci_dev *pdev, struct ata_port_info **port, int portmask); | 870 | unsigned int port_mask); |
| 871 | extern int ata_pci_prepare_native_host(struct pci_dev *pdev, | ||
| 872 | const struct ata_port_info * const * ppi, | ||
| 873 | int n_ports, struct ata_host **r_host); | ||
| 875 | extern int pci_test_config_bits(struct pci_dev *pdev, const struct pci_bits *bits); | 874 | extern int pci_test_config_bits(struct pci_dev *pdev, const struct pci_bits *bits); |
| 876 | extern unsigned long ata_pci_default_filter(const struct ata_port *, struct ata_device *, unsigned long); | 875 | extern unsigned long ata_pci_default_filter(struct ata_device *, unsigned long); |
| 877 | #endif /* CONFIG_PCI */ | 876 | #endif /* CONFIG_PCI */ |
| 878 | 877 | ||
| 879 | /* | 878 | /* |
| @@ -1173,6 +1172,7 @@ static inline void ata_qc_reinit(struct ata_queued_cmd *qc) | |||
| 1173 | qc->n_elem = 0; | 1172 | qc->n_elem = 0; |
| 1174 | qc->err_mask = 0; | 1173 | qc->err_mask = 0; |
| 1175 | qc->pad_len = 0; | 1174 | qc->pad_len = 0; |
| 1175 | qc->sect_size = ATA_SECT_SIZE; | ||
| 1176 | 1176 | ||
| 1177 | ata_tf_init(qc->dev, &qc->tf); | 1177 | ata_tf_init(qc->dev, &qc->tf); |
| 1178 | 1178 | ||
| @@ -1220,7 +1220,7 @@ static inline void ata_pad_free(struct ata_port *ap, struct device *dev) | |||
| 1220 | 1220 | ||
| 1221 | static inline struct ata_port *ata_shost_to_port(struct Scsi_Host *host) | 1221 | static inline struct ata_port *ata_shost_to_port(struct Scsi_Host *host) |
| 1222 | { | 1222 | { |
| 1223 | return (struct ata_port *) &host->hostdata[0]; | 1223 | return *(struct ata_port **)&host->hostdata[0]; |
| 1224 | } | 1224 | } |
| 1225 | 1225 | ||
| 1226 | #endif /* __LINUX_LIBATA_H__ */ | 1226 | #endif /* __LINUX_LIBATA_H__ */ |
diff --git a/include/linux/pci.h b/include/linux/pci.h index a3ad76221c6f..972491089ac9 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -838,6 +838,7 @@ void __iomem * pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen); | |||
| 838 | void pcim_iounmap(struct pci_dev *pdev, void __iomem *addr); | 838 | void pcim_iounmap(struct pci_dev *pdev, void __iomem *addr); |
| 839 | void __iomem * const * pcim_iomap_table(struct pci_dev *pdev); | 839 | void __iomem * const * pcim_iomap_table(struct pci_dev *pdev); |
| 840 | int pcim_iomap_regions(struct pci_dev *pdev, u16 mask, const char *name); | 840 | int pcim_iomap_regions(struct pci_dev *pdev, u16 mask, const char *name); |
| 841 | void pcim_iounmap_regions(struct pci_dev *pdev, u16 mask); | ||
| 841 | 842 | ||
| 842 | extern int pci_pci_problems; | 843 | extern int pci_pci_problems; |
| 843 | #define PCIPCI_FAIL 1 /* No PCI PCI DMA */ | 844 | #define PCIPCI_FAIL 1 /* No PCI PCI DMA */ |
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 600308fdf9ce..1b0ddbb8a804 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
| @@ -368,7 +368,6 @@ | |||
| 368 | #define PCI_DEVICE_ID_ATI_IXP400_SATA 0x4379 | 368 | #define PCI_DEVICE_ID_ATI_IXP400_SATA 0x4379 |
| 369 | #define PCI_DEVICE_ID_ATI_IXP400_SATA2 0x437a | 369 | #define PCI_DEVICE_ID_ATI_IXP400_SATA2 0x437a |
| 370 | #define PCI_DEVICE_ID_ATI_IXP600_SATA 0x4380 | 370 | #define PCI_DEVICE_ID_ATI_IXP600_SATA 0x4380 |
| 371 | #define PCI_DEVICE_ID_ATI_IXP600_SRAID 0x4381 | ||
| 372 | #define PCI_DEVICE_ID_ATI_IXP600_SMBUS 0x4385 | 371 | #define PCI_DEVICE_ID_ATI_IXP600_SMBUS 0x4385 |
| 373 | #define PCI_DEVICE_ID_ATI_IXP600_IDE 0x438c | 372 | #define PCI_DEVICE_ID_ATI_IXP600_IDE 0x438c |
| 374 | 373 | ||
| @@ -1459,6 +1458,8 @@ | |||
| 1459 | 1458 | ||
| 1460 | #define PCI_VENDOR_ID_TOSHIBA_2 0x102f | 1459 | #define PCI_VENDOR_ID_TOSHIBA_2 0x102f |
| 1461 | #define PCI_DEVICE_ID_TOSHIBA_TC35815CF 0x0030 | 1460 | #define PCI_DEVICE_ID_TOSHIBA_TC35815CF 0x0030 |
| 1461 | #define PCI_DEVICE_ID_TOSHIBA_TC35815_NWU 0x0031 | ||
| 1462 | #define PCI_DEVICE_ID_TOSHIBA_TC35815_TX4939 0x0032 | ||
| 1462 | #define PCI_DEVICE_ID_TOSHIBA_TC86C001_IDE 0x0105 | 1463 | #define PCI_DEVICE_ID_TOSHIBA_TC86C001_IDE 0x0105 |
| 1463 | #define PCI_DEVICE_ID_TOSHIBA_TC86C001_MISC 0x0108 | 1464 | #define PCI_DEVICE_ID_TOSHIBA_TC86C001_MISC 0x0108 |
| 1464 | #define PCI_DEVICE_ID_TOSHIBA_SPIDER_NET 0x01b3 | 1465 | #define PCI_DEVICE_ID_TOSHIBA_SPIDER_NET 0x01b3 |
diff --git a/include/linux/phy.h b/include/linux/phy.h index edd4c88ca7d8..2a659789f9ca 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
| @@ -55,6 +55,7 @@ typedef enum { | |||
| 55 | PHY_INTERFACE_MODE_TBI, | 55 | PHY_INTERFACE_MODE_TBI, |
| 56 | PHY_INTERFACE_MODE_RMII, | 56 | PHY_INTERFACE_MODE_RMII, |
| 57 | PHY_INTERFACE_MODE_RGMII, | 57 | PHY_INTERFACE_MODE_RGMII, |
| 58 | PHY_INTERFACE_MODE_RGMII_ID, | ||
| 58 | PHY_INTERFACE_MODE_RTBI | 59 | PHY_INTERFACE_MODE_RTBI |
| 59 | } phy_interface_t; | 60 | } phy_interface_t; |
| 60 | 61 | ||
diff --git a/include/linux/sony-laptop.h b/include/linux/sony-laptop.h new file mode 100644 index 000000000000..e2e036d94e4a --- /dev/null +++ b/include/linux/sony-laptop.h | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | #ifndef _SONYLAPTOP_H_ | ||
| 2 | #define _SONYLAPTOP_H_ | ||
| 3 | |||
| 4 | #include <linux/types.h> | ||
| 5 | |||
| 6 | #ifdef __KERNEL__ | ||
| 7 | |||
| 8 | /* used only for communication between v4l and sony-laptop */ | ||
| 9 | |||
| 10 | #define SONY_PIC_COMMAND_GETCAMERA 1 /* obsolete */ | ||
| 11 | #define SONY_PIC_COMMAND_SETCAMERA 2 | ||
| 12 | #define SONY_PIC_COMMAND_GETCAMERABRIGHTNESS 3 /* obsolete */ | ||
| 13 | #define SONY_PIC_COMMAND_SETCAMERABRIGHTNESS 4 | ||
| 14 | #define SONY_PIC_COMMAND_GETCAMERACONTRAST 5 /* obsolete */ | ||
| 15 | #define SONY_PIC_COMMAND_SETCAMERACONTRAST 6 | ||
| 16 | #define SONY_PIC_COMMAND_GETCAMERAHUE 7 /* obsolete */ | ||
| 17 | #define SONY_PIC_COMMAND_SETCAMERAHUE 8 | ||
| 18 | #define SONY_PIC_COMMAND_GETCAMERACOLOR 9 /* obsolete */ | ||
| 19 | #define SONY_PIC_COMMAND_SETCAMERACOLOR 10 | ||
| 20 | #define SONY_PIC_COMMAND_GETCAMERASHARPNESS 11 /* obsolete */ | ||
| 21 | #define SONY_PIC_COMMAND_SETCAMERASHARPNESS 12 | ||
| 22 | #define SONY_PIC_COMMAND_GETCAMERAPICTURE 13 /* obsolete */ | ||
| 23 | #define SONY_PIC_COMMAND_SETCAMERAPICTURE 14 | ||
| 24 | #define SONY_PIC_COMMAND_GETCAMERAAGC 15 /* obsolete */ | ||
| 25 | #define SONY_PIC_COMMAND_SETCAMERAAGC 16 | ||
| 26 | #define SONY_PIC_COMMAND_GETCAMERADIRECTION 17 /* obsolete */ | ||
| 27 | #define SONY_PIC_COMMAND_GETCAMERAROMVERSION 18 /* obsolete */ | ||
| 28 | #define SONY_PIC_COMMAND_GETCAMERAREVISION 19 /* obsolete */ | ||
| 29 | |||
| 30 | int sony_pic_camera_command(int command, u8 value); | ||
| 31 | |||
| 32 | #endif /* __KERNEL__ */ | ||
| 33 | |||
| 34 | #endif /* _SONYLAPTOP_H_ */ | ||
diff --git a/include/linux/wireless.h b/include/linux/wireless.h index 48759b2f57d7..0987aa7a6cf5 100644 --- a/include/linux/wireless.h +++ b/include/linux/wireless.h | |||
| @@ -186,7 +186,7 @@ | |||
| 186 | * - Wireless Event capability in struct iw_range | 186 | * - Wireless Event capability in struct iw_range |
| 187 | * - Add support for relative TxPower (yick !) | 187 | * - Add support for relative TxPower (yick !) |
| 188 | * | 188 | * |
| 189 | * V17 to V18 (From Jouni Malinen <jkmaline@cc.hut.fi>) | 189 | * V17 to V18 (From Jouni Malinen <j@w1.fi>) |
| 190 | * ---------- | 190 | * ---------- |
| 191 | * - Add support for WPA/WPA2 | 191 | * - Add support for WPA/WPA2 |
| 192 | * - Add extended encoding configuration (SIOCSIWENCODEEXT and | 192 | * - Add extended encoding configuration (SIOCSIWENCODEEXT and |
diff --git a/include/net/ieee80211.h b/include/net/ieee80211.h index e02d85f56e60..d56b2923d61a 100644 --- a/include/net/ieee80211.h +++ b/include/net/ieee80211.h | |||
| @@ -6,8 +6,8 @@ | |||
| 6 | * LAN access point) driver for Intersil Prism2/2.5/3. | 6 | * LAN access point) driver for Intersil Prism2/2.5/3. |
| 7 | * | 7 | * |
| 8 | * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen | 8 | * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen |
| 9 | * <jkmaline@cc.hut.fi> | 9 | * <j@w1.fi> |
| 10 | * Copyright (c) 2002-2003, Jouni Malinen <jkmaline@cc.hut.fi> | 10 | * Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi> |
| 11 | * | 11 | * |
| 12 | * Adaption to a generic IEEE 802.11 stack by James Ketrenos | 12 | * Adaption to a generic IEEE 802.11 stack by James Ketrenos |
| 13 | * <jketreno@linux.intel.com> | 13 | * <jketreno@linux.intel.com> |
diff --git a/include/net/ieee80211_crypt.h b/include/net/ieee80211_crypt.h index eb476414fd72..b3d65e0bedd3 100644 --- a/include/net/ieee80211_crypt.h +++ b/include/net/ieee80211_crypt.h | |||
| @@ -3,8 +3,8 @@ | |||
| 3 | * for Intersil Prism2/2.5/3. | 3 | * for Intersil Prism2/2.5/3. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen | 5 | * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen |
| 6 | * <jkmaline@cc.hut.fi> | 6 | * <j@w1.fi> |
| 7 | * Copyright (c) 2002-2003, Jouni Malinen <jkmaline@cc.hut.fi> | 7 | * Copyright (c) 2002-2003, Jouni Malinen <j@w1.fi> |
| 8 | * | 8 | * |
| 9 | * Adaption to a generic IEEE 802.11 stack by James Ketrenos | 9 | * Adaption to a generic IEEE 802.11 stack by James Ketrenos |
| 10 | * <jketreno@linux.intel.com> | 10 | * <jketreno@linux.intel.com> |
diff --git a/include/net/ieee80211_radiotap.h b/include/net/ieee80211_radiotap.h index 429b73892a5f..a0c2b41a24d7 100644 --- a/include/net/ieee80211_radiotap.h +++ b/include/net/ieee80211_radiotap.h | |||
| @@ -66,7 +66,9 @@ | |||
| 66 | */ | 66 | */ |
| 67 | #define IEEE80211_RADIOTAP_HDRLEN 64 | 67 | #define IEEE80211_RADIOTAP_HDRLEN 64 |
| 68 | 68 | ||
| 69 | /* The radio capture header precedes the 802.11 header. */ | 69 | /* The radio capture header precedes the 802.11 header. |
| 70 | * All data in the header is little endian on all platforms. | ||
| 71 | */ | ||
| 70 | struct ieee80211_radiotap_header { | 72 | struct ieee80211_radiotap_header { |
| 71 | u8 it_version; /* Version 0. Only increases | 73 | u8 it_version; /* Version 0. Only increases |
| 72 | * for drastic changes, | 74 | * for drastic changes, |
| @@ -74,12 +76,12 @@ struct ieee80211_radiotap_header { | |||
| 74 | * new fields does not count. | 76 | * new fields does not count. |
| 75 | */ | 77 | */ |
| 76 | u8 it_pad; | 78 | u8 it_pad; |
| 77 | u16 it_len; /* length of the whole | 79 | __le16 it_len; /* length of the whole |
| 78 | * header in bytes, including | 80 | * header in bytes, including |
| 79 | * it_version, it_pad, | 81 | * it_version, it_pad, |
| 80 | * it_len, and data fields. | 82 | * it_len, and data fields. |
| 81 | */ | 83 | */ |
| 82 | u32 it_present; /* A bitmap telling which | 84 | __le32 it_present; /* A bitmap telling which |
| 83 | * fields are present. Set bit 31 | 85 | * fields are present. Set bit 31 |
| 84 | * (0x80000000) to extend the | 86 | * (0x80000000) to extend the |
| 85 | * bitmap by another 32 bits. | 87 | * bitmap by another 32 bits. |
| @@ -88,89 +90,102 @@ struct ieee80211_radiotap_header { | |||
| 88 | */ | 90 | */ |
| 89 | }; | 91 | }; |
| 90 | 92 | ||
| 91 | /* Name Data type Units | 93 | /* Name Data type Units |
| 92 | * ---- --------- ----- | 94 | * ---- --------- ----- |
| 93 | * | 95 | * |
| 94 | * IEEE80211_RADIOTAP_TSFT u64 microseconds | 96 | * IEEE80211_RADIOTAP_TSFT __le64 microseconds |
| 95 | * | 97 | * |
| 96 | * Value in microseconds of the MAC's 64-bit 802.11 Time | 98 | * Value in microseconds of the MAC's 64-bit 802.11 Time |
| 97 | * Synchronization Function timer when the first bit of the | 99 | * Synchronization Function timer when the first bit of the |
| 98 | * MPDU arrived at the MAC. For received frames, only. | 100 | * MPDU arrived at the MAC. For received frames, only. |
| 99 | * | 101 | * |
| 100 | * IEEE80211_RADIOTAP_CHANNEL 2 x u16 MHz, bitmap | 102 | * IEEE80211_RADIOTAP_CHANNEL 2 x __le16 MHz, bitmap |
| 101 | * | 103 | * |
| 102 | * Tx/Rx frequency in MHz, followed by flags (see below). | 104 | * Tx/Rx frequency in MHz, followed by flags (see below). |
| 103 | * | 105 | * |
| 104 | * IEEE80211_RADIOTAP_FHSS u16 see below | 106 | * IEEE80211_RADIOTAP_FHSS __le16 see below |
| 105 | * | 107 | * |
| 106 | * For frequency-hopping radios, the hop set (first byte) | 108 | * For frequency-hopping radios, the hop set (first byte) |
| 107 | * and pattern (second byte). | 109 | * and pattern (second byte). |
| 108 | * | 110 | * |
| 109 | * IEEE80211_RADIOTAP_RATE u8 500kb/s | 111 | * IEEE80211_RADIOTAP_RATE u8 500kb/s |
| 110 | * | 112 | * |
| 111 | * Tx/Rx data rate | 113 | * Tx/Rx data rate |
| 112 | * | 114 | * |
| 113 | * IEEE80211_RADIOTAP_DBM_ANTSIGNAL int8_t decibels from | 115 | * IEEE80211_RADIOTAP_DBM_ANTSIGNAL s8 decibels from |
| 114 | * one milliwatt (dBm) | 116 | * one milliwatt (dBm) |
| 115 | * | 117 | * |
| 116 | * RF signal power at the antenna, decibel difference from | 118 | * RF signal power at the antenna, decibel difference from |
| 117 | * one milliwatt. | 119 | * one milliwatt. |
| 118 | * | 120 | * |
| 119 | * IEEE80211_RADIOTAP_DBM_ANTNOISE int8_t decibels from | 121 | * IEEE80211_RADIOTAP_DBM_ANTNOISE s8 decibels from |
| 120 | * one milliwatt (dBm) | 122 | * one milliwatt (dBm) |
| 121 | * | 123 | * |
| 122 | * RF noise power at the antenna, decibel difference from one | 124 | * RF noise power at the antenna, decibel difference from one |
| 123 | * milliwatt. | 125 | * milliwatt. |
| 124 | * | 126 | * |
| 125 | * IEEE80211_RADIOTAP_DB_ANTSIGNAL u8 decibel (dB) | 127 | * IEEE80211_RADIOTAP_DB_ANTSIGNAL u8 decibel (dB) |
| 126 | * | 128 | * |
| 127 | * RF signal power at the antenna, decibel difference from an | 129 | * RF signal power at the antenna, decibel difference from an |
| 128 | * arbitrary, fixed reference. | 130 | * arbitrary, fixed reference. |
| 129 | * | 131 | * |
| 130 | * IEEE80211_RADIOTAP_DB_ANTNOISE u8 decibel (dB) | 132 | * IEEE80211_RADIOTAP_DB_ANTNOISE u8 decibel (dB) |
| 131 | * | 133 | * |
| 132 | * RF noise power at the antenna, decibel difference from an | 134 | * RF noise power at the antenna, decibel difference from an |
| 133 | * arbitrary, fixed reference point. | 135 | * arbitrary, fixed reference point. |
| 134 | * | 136 | * |
| 135 | * IEEE80211_RADIOTAP_LOCK_QUALITY u16 unitless | 137 | * IEEE80211_RADIOTAP_LOCK_QUALITY __le16 unitless |
| 136 | * | 138 | * |
| 137 | * Quality of Barker code lock. Unitless. Monotonically | 139 | * Quality of Barker code lock. Unitless. Monotonically |
| 138 | * nondecreasing with "better" lock strength. Called "Signal | 140 | * nondecreasing with "better" lock strength. Called "Signal |
| 139 | * Quality" in datasheets. (Is there a standard way to measure | 141 | * Quality" in datasheets. (Is there a standard way to measure |
| 140 | * this?) | 142 | * this?) |
| 141 | * | 143 | * |
| 142 | * IEEE80211_RADIOTAP_TX_ATTENUATION u16 unitless | 144 | * IEEE80211_RADIOTAP_TX_ATTENUATION __le16 unitless |
| 143 | * | 145 | * |
| 144 | * Transmit power expressed as unitless distance from max | 146 | * Transmit power expressed as unitless distance from max |
| 145 | * power set at factory calibration. 0 is max power. | 147 | * power set at factory calibration. 0 is max power. |
| 146 | * Monotonically nondecreasing with lower power levels. | 148 | * Monotonically nondecreasing with lower power levels. |
| 147 | * | 149 | * |
| 148 | * IEEE80211_RADIOTAP_DB_TX_ATTENUATION u16 decibels (dB) | 150 | * IEEE80211_RADIOTAP_DB_TX_ATTENUATION __le16 decibels (dB) |
| 149 | * | 151 | * |
| 150 | * Transmit power expressed as decibel distance from max power | 152 | * Transmit power expressed as decibel distance from max power |
| 151 | * set at factory calibration. 0 is max power. Monotonically | 153 | * set at factory calibration. 0 is max power. Monotonically |
| 152 | * nondecreasing with lower power levels. | 154 | * nondecreasing with lower power levels. |
| 153 | * | 155 | * |
| 154 | * IEEE80211_RADIOTAP_DBM_TX_POWER int8_t decibels from | 156 | * IEEE80211_RADIOTAP_DBM_TX_POWER s8 decibels from |
| 155 | * one milliwatt (dBm) | 157 | * one milliwatt (dBm) |
| 156 | * | 158 | * |
| 157 | * Transmit power expressed as dBm (decibels from a 1 milliwatt | 159 | * Transmit power expressed as dBm (decibels from a 1 milliwatt |
| 158 | * reference). This is the absolute power level measured at | 160 | * reference). This is the absolute power level measured at |
| 159 | * the antenna port. | 161 | * the antenna port. |
| 160 | * | 162 | * |
| 161 | * IEEE80211_RADIOTAP_FLAGS u8 bitmap | 163 | * IEEE80211_RADIOTAP_FLAGS u8 bitmap |
| 162 | * | 164 | * |
| 163 | * Properties of transmitted and received frames. See flags | 165 | * Properties of transmitted and received frames. See flags |
| 164 | * defined below. | 166 | * defined below. |
| 165 | * | 167 | * |
| 166 | * IEEE80211_RADIOTAP_ANTENNA u8 antenna index | 168 | * IEEE80211_RADIOTAP_ANTENNA u8 antenna index |
| 167 | * | 169 | * |
| 168 | * Unitless indication of the Rx/Tx antenna for this packet. | 170 | * Unitless indication of the Rx/Tx antenna for this packet. |
| 169 | * The first antenna is antenna 0. | 171 | * The first antenna is antenna 0. |
| 170 | * | 172 | * |
| 171 | * IEEE80211_RADIOTAP_FCS u32 data | 173 | * IEEE80211_RADIOTAP_RX_FLAGS __le16 bitmap |
| 174 | * | ||
| 175 | * Properties of received frames. See flags defined below. | ||
| 176 | * | ||
| 177 | * IEEE80211_RADIOTAP_TX_FLAGS __le16 bitmap | ||
| 178 | * | ||
| 179 | * Properties of transmitted frames. See flags defined below. | ||
| 180 | * | ||
| 181 | * IEEE80211_RADIOTAP_RTS_RETRIES u8 data | ||
| 182 | * | ||
| 183 | * Number of rts retries a transmitted frame used. | ||
| 184 | * | ||
| 185 | * IEEE80211_RADIOTAP_DATA_RETRIES u8 data | ||
| 186 | * | ||
| 187 | * Number of unicast retries a transmitted frame used. | ||
| 172 | * | 188 | * |
| 173 | * FCS from frame in network byte order. | ||
| 174 | */ | 189 | */ |
| 175 | enum ieee80211_radiotap_type { | 190 | enum ieee80211_radiotap_type { |
| 176 | IEEE80211_RADIOTAP_TSFT = 0, | 191 | IEEE80211_RADIOTAP_TSFT = 0, |
| @@ -187,7 +202,11 @@ enum ieee80211_radiotap_type { | |||
| 187 | IEEE80211_RADIOTAP_ANTENNA = 11, | 202 | IEEE80211_RADIOTAP_ANTENNA = 11, |
| 188 | IEEE80211_RADIOTAP_DB_ANTSIGNAL = 12, | 203 | IEEE80211_RADIOTAP_DB_ANTSIGNAL = 12, |
| 189 | IEEE80211_RADIOTAP_DB_ANTNOISE = 13, | 204 | IEEE80211_RADIOTAP_DB_ANTNOISE = 13, |
| 190 | IEEE80211_RADIOTAP_EXT = 31, | 205 | IEEE80211_RADIOTAP_RX_FLAGS = 14, |
| 206 | IEEE80211_RADIOTAP_TX_FLAGS = 15, | ||
| 207 | IEEE80211_RADIOTAP_RTS_RETRIES = 16, | ||
| 208 | IEEE80211_RADIOTAP_DATA_RETRIES = 17, | ||
| 209 | IEEE80211_RADIOTAP_EXT = 31 | ||
| 191 | }; | 210 | }; |
| 192 | 211 | ||
| 193 | /* Channel flags. */ | 212 | /* Channel flags. */ |
| @@ -219,6 +238,14 @@ enum ieee80211_radiotap_type { | |||
| 219 | * 802.11 header and payload | 238 | * 802.11 header and payload |
| 220 | * (to 32-bit boundary) | 239 | * (to 32-bit boundary) |
| 221 | */ | 240 | */ |
| 241 | /* For IEEE80211_RADIOTAP_RX_FLAGS */ | ||
| 242 | #define IEEE80211_RADIOTAP_F_RX_BADFCS 0x0001 /* frame failed crc check */ | ||
| 243 | |||
| 244 | /* For IEEE80211_RADIOTAP_TX_FLAGS */ | ||
| 245 | #define IEEE80211_RADIOTAP_F_TX_FAIL 0x0001 /* failed due to excessive | ||
| 246 | * retries */ | ||
| 247 | #define IEEE80211_RADIOTAP_F_TX_CTS 0x0002 /* used cts 'protection' */ | ||
| 248 | #define IEEE80211_RADIOTAP_F_TX_RTS 0x0004 /* used rts/cts handshake */ | ||
| 222 | 249 | ||
| 223 | /* Ugly macro to convert literal channel numbers into their mhz equivalents | 250 | /* Ugly macro to convert literal channel numbers into their mhz equivalents |
| 224 | * There are certianly some conditions that will break this (like feeding it '30') | 251 | * There are certianly some conditions that will break this (like feeding it '30') |
