Skip to content

PlatformDriverInit

Defined in: src/drivers/base/platform.ts:29

optional attrs?: Record<string, DriverAttribute>

Defined in: src/drivers/base/driver.ts:31

Omit.attrs


optional bus?: BusType<Device<unknown>, DeviceDriver<Device<unknown>>>

Defined in: src/drivers/base/platform.ts:31

platform_bus_type

optional dev_attrs?: Record<string, DeviceAttribute>

Defined in: src/drivers/base/driver.ts:32

Omit.dev_attrs


optional disableSysfsBind?: boolean

Defined in: src/drivers/base/driver.ts:23

Don’t add the bind and unbind attributes

Omit.disableSysfsBind


optional driver_managed_dma?: boolean

Defined in: src/drivers/base/platform.ts:41


optional id_table?: PlatformDeviceId[]

Defined in: src/drivers/base/platform.ts:32


optional mod_name?: string

Defined in: src/drivers/base/driver.ts:20

Used for built-in modules

Omit.mod_name


name: string

Defined in: src/drivers/base/driver.ts:14

Omit.name


optional of_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.

Omit.of_match_table


optional owner?: Module

Defined in: src/drivers/base/driver.ts:18

The module this driver is part of. Built-in drivers don’t have one.

Omit.owner


optional prevent_deferred_probe?: boolean

Defined in: src/drivers/base/platform.ts:33


optional probe?: (device) => boolean

Defined in: src/drivers/base/driver.ts:34

PlatformDevice

boolean

Omit.probe


optional remove?: (device) => void

Defined in: src/drivers/base/driver.ts:36

PlatformDevice

void

Omit.remove


optional resume?: (device) => void

Defined in: src/drivers/base/driver.ts:40

PlatformDevice

void

Omit.resume


optional shutdown?: (device) => void

Defined in: src/drivers/base/driver.ts:37

PlatformDevice

void

Omit.shutdown


optional suspend?: (device) => void

Defined in: src/drivers/base/driver.ts:39

PlatformDevice

void

Omit.suspend