Lines Matching full:device
28 * devices. The slot/function address of each device is encoded
40 #define PCIIOC_CONTROLLER (PCIIOC_BASE | 0x00) /* Get controller for PCI device. */
53 #include <linux/device.h>
81 * the pci device. If some PCI bus between here and the pci device
114 struct pci_bus *bus; /* bus this device is on */
115 struct pci_bus *subordinate; /* bus this device bridges to */
118 struct proc_dir_entry *procent; /* device entry in /proc/bus/pci */
120 unsigned int devfn; /* encoded device & function index */
122 unsigned short device;
128 u8 pin; /* which interrupt pin this device uses */
130 struct pci_driver *driver; /* which driver has allocated this device */
132 device implements. Normally this is
134 this if your device has broken DMA
142 struct device dev; /* Generic device interface */
144 /* device is compatible with these IDs */
159 unsigned int multifunction:1;/* Part of multi-function device */
160 /* keep track of device state */
162 unsigned int is_busmaster:1; /* device is busmaster */
163 unsigned int no_msi:1; /* device may not use msi */
166 unsigned int broken_parity_status:1; /* Device generates false positive parity */
229 struct pci_dev *self; /* bridge device as seen by parent */
246 struct device *bridge;
294 /** PCI Error Recovery System (PCI-ERS). If a PCI device driver provides
295 * a set fof callbacks in struct pci_error_handlers, then that device driver
303 /* no result/none/not supported in device driver */
306 /* Device driver can recover without slot reset */
309 /* Device driver wants slot to be reset. */
312 /* Device has completely failed, is unrecoverable */
315 /* Device driver is fully recovered and operational */
322 /* PCI bus error detected on this device */
335 /* Device driver may resume normal operations */
346 int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); /* New device inserted */
347 void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */
348 int (*suspend) (struct pci_dev *dev, pm_message_t state); /* Device suspended */
349 int (*resume) (struct pci_dev *dev); /* Device woken up */
361 * PCI_DEVICE - macro used to describe a specific pci device
363 * @dev: the 16 bit PCI Device ID
366 * specific device. The subvendor and subdevice fields will be set to
370 .vendor = (vend), .device = (dev), \
374 * PCI_DEVICE_CLASS - macro used to describe a specific pci device class
375 * @dev_class: the class, subclass, prog-if triple for this device
376 * @dev_class_mask: the class mask for this device
379 * specific PCI class. The vendor, device, subvendor, and subdevice
384 .vendor = PCI_ANY_ID, .device = PCI_ANY_ID, \
416 struct pci_bus *pci_scan_bus_parented(struct device *parent, int bus, struct pci_ops *ops, void *sysdata);
425 struct pci_bus *pci_create_bus(struct device *parent, int bus, struct pci_ops *ops, void *sysdata);
443 struct pci_dev *pci_find_device (unsigned int vendor, unsigned int device, const struct pci_dev *from);
444 struct pci_dev *pci_find_device_reverse (unsigned int vendor, unsigned int device, const struct pci_dev *from);
451 struct pci_dev *pci_get_device (unsigned int vendor, unsigned int device, struct pci_dev *from);
452 struct pci_dev *pci_get_subsys (unsigned int vendor, unsigned int device,
641 static inline struct pci_dev *pci_find_device(unsigned int vendor, unsigned int device, const struct pci_dev *from)
647 static inline struct pci_dev *pci_get_device (unsigned int vendor, unsigned int device, struct pci_dev *from)
650 static inline struct pci_dev *pci_get_subsys (unsigned int vendor, unsigned int device,
708 * the generic device structure functions of these calls.
721 * Again, it's a wrapper around the generic device.
751 u16 vendor, device; /* You can use PCI_ANY_ID here of course */
758 pci_fixup_final, /* Final phase of device fixups */
763 #define DECLARE_PCI_FIXUP_SECTION(section, name, vendor, device, hook) \
765 __attribute__((__section__(#section))) = { vendor, device, hook };
766 #define DECLARE_PCI_FIXUP_EARLY(vendor, device, hook) \
768 vendor##device##hook, vendor, device, hook)
769 #define DECLARE_PCI_FIXUP_HEADER(vendor, device, hook) \
771 vendor##device##hook, vendor, device, hook)
772 #define DECLARE_PCI_FIXUP_FINAL(vendor, device, hook) \
774 vendor##device##hook, vendor, device, hook)
775 #define DECLARE_PCI_FIXUP_ENABLE(vendor, device, hook) \
777 vendor##device##hook, vendor, device, hook)