From 25d7b99ea689f6c1e7235f908b160f991ce71467 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Mon, 29 May 2023 02:28:42 +0200 Subject: [PATCH] improved config for PCI device drivers --- kernel/sysabi.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/kernel/sysabi.md b/kernel/sysabi.md index 607b534..df58409 100644 --- a/kernel/sysabi.md +++ b/kernel/sysabi.md @@ -150,12 +150,22 @@ If another process calls them, they will just return without doing anything. **header.specific_config.pci:** -| Length(bytes) | Name | Description | -|-------------------------|----------------|---------------------------------------------------------------| -| 0x02 | num_vendor_ids | The amount of PCI vendor ids the driver can handle. | -| 0x02 | num_device_ids | The amount of PCI device ids the driver can handle. | -| 0x02 * `num_vendor_ids` | vendor_ids | An array containing all PCI vendor ids the driver can handle. | -| 0x02 * `num_device_ids` | device_ids | An array containing all PCI device ids the driver can handle. | +| Length(bytes) | Name | Description | +|-------------------------|----------------|-----------------------------------------------------------------------------| +| 0x01 | enable_progif | If set to zero, the progif entry will be ignored. | +| 0x01 | class | The PCI class code, the driver supports. | +| 0x01 | subclass | The PCI subclass code, the driver supports. | +| 0x01 | progif | The PCI ProgIF code, the driver supports. | +| 0x02 | num_device_ids | The amount of device ids the driver can handle. | +| 0x04 * `num_device_ids` | device_ids | An array containing all device ids the driver can handle. (described below) | + + +**header.specific_config.pci.device_id:** + +| Length(bytes) | Name | Description | +|---------------|-----------|----------------------------| +| 0x02 | vendor_id | The devices PCI vendor ID. | +| 0x02 | device_id | The devices PCI device ID. | **header.specific_config.usb:**