Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/pci.h
Show First 20 Lines • Show All 212 Lines • ▼ Show 20 Lines | |||||
extern spinlock_t pci_lock; | extern spinlock_t pci_lock; | ||||
#define __devexit_p(x) x | #define __devexit_p(x) x | ||||
struct pci_dev { | struct pci_dev { | ||||
struct device dev; | struct device dev; | ||||
struct list_head links; | struct list_head links; | ||||
struct pci_driver *pdrv; | struct pci_driver *pdrv; | ||||
struct pci_bus *bus; | struct pci_bus *bus; | ||||
uint64_t dma_mask; | |||||
uint16_t device; | uint16_t device; | ||||
kib: Why is this data lives in pci_dev and not in device ?
Is there anything in the patch which… | |||||
Done Inline ActionsNo there actually isn't anything that prevents it working for non-pci devices. Searching the sources I couldn't find that use cause. Regardless I hoisted dma_priv to struct device from struct pci_dev to support that possibility. tychon: No there actually isn't anything that prevents it working for non-pci devices. Searching the… | |||||
uint16_t vendor; | uint16_t vendor; | ||||
uint16_t subsystem_vendor; | uint16_t subsystem_vendor; | ||||
uint16_t subsystem_device; | uint16_t subsystem_device; | ||||
unsigned int irq; | unsigned int irq; | ||||
unsigned int devfn; | unsigned int devfn; | ||||
uint32_t class; | uint32_t class; | ||||
uint8_t revision; | uint8_t revision; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 695 Lines • Show Last 20 Lines |
Why is this data lives in pci_dev and not in device ?
Is there anything in the patch which prevents it working for non-pci devices ?