|
iPXE
|
Device model. More...
Go to the source code of this file.
Data Structures | |
| struct | device_description |
| A hardware device description. More... | |
| struct | device |
| A hardware device. More... | |
| struct | root_device |
| A root device. More... | |
| struct | root_driver |
| A root device driver. More... | |
Macros | |
| #define | BUS_TYPE_PCI 1 |
| PCI bus type. More... | |
| #define | BUS_TYPE_ISAPNP 2 |
| ISAPnP bus type. More... | |
| #define | BUS_TYPE_EISA 3 |
| EISA bus type. More... | |
| #define | BUS_TYPE_MCA 4 |
| MCA bus type. More... | |
| #define | BUS_TYPE_ISA 5 |
| ISA bus type. More... | |
| #define | BUS_TYPE_TAP 6 |
| TAP bus type. More... | |
| #define | BUS_TYPE_EFI 7 |
| EFI bus type. More... | |
| #define | BUS_TYPE_XEN 8 |
| Xen bus type. More... | |
| #define | BUS_TYPE_HV 9 |
| Hyper-V bus type. More... | |
| #define | BUS_TYPE_USB 10 |
| USB bus type. More... | |
| #define | BUS_TYPE_DT 11 |
| Devicetree bus type. More... | |
| #define | ROOT_DEVICES __table ( struct root_device, "root_devices" ) |
| Root device table. More... | |
| #define | __root_device __table_entry ( ROOT_DEVICES, 01 ) |
| Declare a root device. More... | |
| #define | identify_device_TYPE(object_type) typeof ( struct device * ( object_type ) ) |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static void | rootdev_set_drvdata (struct root_device *rootdev, void *priv) |
| Set root device driver-private data. More... | |
| static void * | rootdev_get_drvdata (struct root_device *rootdev) |
| Get root device driver-private data. More... | |
| static void | devices_get (void) |
| Prevent devices from being removed on shutdown. More... | |
| static void | devices_put (void) |
| Allow devices to be removed on shutdown. More... | |
| struct device * | identify_device (struct interface *intf) |
| Identify a device behind an interface. More... | |
Variables | |
| int | device_keep_count |
| Device removal inhibition counter. More... | |
Device model.
Definition in file device.h.
| #define ROOT_DEVICES __table ( struct root_device, "root_devices" ) |
| #define __root_device __table_entry ( ROOT_DEVICES, 01 ) |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Set root device driver-private data.
| rootdev | Root device |
| priv | Private data |
Definition at line 143 of file device.h.
References root_device::priv, and priv.
Referenced by hv_probe(), and hv_remove().
|
inlinestatic |
Get root device driver-private data.
| rootdev | Root device |
| priv | Private data |
Definition at line 154 of file device.h.
References root_device::priv.
Referenced by hv_quiesce(), hv_remove(), and hv_unquiesce().
|
inlinestatic |
Prevent devices from being removed on shutdown.
Definition at line 164 of file device.h.
References device_keep_count.
Referenced by int13_hook(), and pxe_activate().
|
inlinestatic |
Allow devices to be removed on shutdown.
Definition at line 172 of file device.h.
References device_keep_count.
Referenced by int13_unhook(), and pxe_deactivate().
Identify a device behind an interface.
| intf | Interface |
| device | Device, or NULL |
Definition at line 125 of file device.c.
References dest, device, identify_device(), identify_device_TYPE, interface::intf, intf_get_dest_op, intf_object(), intf_put(), NULL, and op.
Referenced by fcpdev_identify_device(), identify_device(), and int13_device_path_info().
| int device_keep_count |
Device removal inhibition counter.
Definition at line 44 of file device.c.
Referenced by devices_get(), devices_put(), and remove_devices().
1.8.15