47#define BUS_TYPE_ISAPNP 2
50#define BUS_TYPE_EISA 3
71#define BUS_TYPE_USB 10
133#define ROOT_DEVICES __table ( struct root_device, "root_devices" )
136#define __root_device __table_entry ( ROOT_DEVICES, 01 )
156 return rootdev->
priv;
178#define identify_device_TYPE( object_type ) \
179 typeof ( struct device * ( object_type ) )
int device_keep_count
Device removal inhibition counter.
static void devices_get(void)
Prevent devices from being removed on shutdown.
static void * rootdev_get_drvdata(struct root_device *rootdev)
Get root device driver-private data.
static void rootdev_set_drvdata(struct root_device *rootdev, void *priv)
Set root device driver-private data.
struct device * identify_device(struct interface *intf)
Identify a device behind an interface.
static void devices_put(void)
Allow devices to be removed on shutdown.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
A hardware device description.
unsigned int bus_type
Bus type.
unsigned int device
Device ID.
unsigned int vendor
Vendor ID.
unsigned int location
Location.
unsigned long ioaddr
I/O address.
struct device_description desc
Device description.
struct device * parent
Bus device.
struct list_head children
Devices attached to this device.
struct list_head siblings
Devices on the same bus.
const char * driver_name
Driver name.
A doubly-linked list entry (or list head)
void * priv
Driver-private data.
struct root_driver * driver
Root device driver.
struct device dev
Device chain.
int(* probe)(struct root_device *rootdev)
Add root device.
void(* remove)(struct root_device *rootdev)
Remove root device.
static struct tlan_private * priv