DeviceDriverInit
Defined in: src/drivers/base/driver.ts:13
Type Parameters
Section titled “Type Parameters”TDevice
Section titled “TDevice”TDevice extends Device = Device
Properties
Section titled “Properties”attrs?
Section titled “attrs?”
optionalattrs?:Record<string,DriverAttribute>
Defined in: src/drivers/base/driver.ts:31
bus:
BusType
Defined in: src/drivers/base/driver.ts:15
dev_attrs?
Section titled “dev_attrs?”
optionaldev_attrs?:Record<string,DeviceAttribute>
Defined in: src/drivers/base/driver.ts:32
disableSysfsBind?
Section titled “disableSysfsBind?”
optionaldisableSysfsBind?:boolean
Defined in: src/drivers/base/driver.ts:23
Don’t add the bind and unbind attributes
mod_name?
Section titled “mod_name?”
optionalmod_name?:string
Defined in: src/drivers/base/driver.ts:20
Used for built-in modules
name:
string
Defined in: src/drivers/base/driver.ts:14
of_match_table?
Section titled “of_match_table?”
optionalof_match_table?: readonly"xterm"[]
Defined in: src/drivers/base/driver.ts:29
The device tree node kinds this driver handles, i.e. driver->of_match_table.
A kind is our equivalent of compatible.
owner?
Section titled “owner?”
optionalowner?:Module
Defined in: src/drivers/base/driver.ts:18
The module this driver is part of. Built-in drivers don’t have one.
probe?
Section titled “probe?”
optionalprobe?: (device) =>boolean
Defined in: src/drivers/base/driver.ts:34
Parameters
Section titled “Parameters”device
Section titled “device”TDevice
Returns
Section titled “Returns”boolean
remove?
Section titled “remove?”
optionalremove?: (device) =>void
Defined in: src/drivers/base/driver.ts:36
Parameters
Section titled “Parameters”device
Section titled “device”TDevice
Returns
Section titled “Returns”void
resume?
Section titled “resume?”
optionalresume?: (device) =>void
Defined in: src/drivers/base/driver.ts:40
Parameters
Section titled “Parameters”device
Section titled “device”TDevice
Returns
Section titled “Returns”void
shutdown?
Section titled “shutdown?”
optionalshutdown?: (device) =>void
Defined in: src/drivers/base/driver.ts:37
Parameters
Section titled “Parameters”device
Section titled “device”TDevice
Returns
Section titled “Returns”void
suspend?
Section titled “suspend?”
optionalsuspend?: (device) =>void
Defined in: src/drivers/base/driver.ts:39
Parameters
Section titled “Parameters”device
Section titled “device”TDevice
Returns
Section titled “Returns”void