/DragonOS-0.1.2/kernel/src/driver/pci/ |
D | pci.c | 20 list_add(pci_device_structure_list, &(ret->header.list)); \ 25 list_init(&(ret->header.list)); \ 26 pci_device_structure_list = &(ret->header.list); \ 88 static void pci_read_general_device_header(struct pci_device_structure_general_device_t *header, uc… in pci_read_general_device_header() argument 91 header->BAR0 = pci_read_config(bus, slot, func, 0x10); in pci_read_general_device_header() 92 header->BAR1 = pci_read_config(bus, slot, func, 0x14); in pci_read_general_device_header() 93 header->BAR2 = pci_read_config(bus, slot, func, 0x18); in pci_read_general_device_header() 94 header->BAR3 = pci_read_config(bus, slot, func, 0x1c); in pci_read_general_device_header() 95 header->BAR4 = pci_read_config(bus, slot, func, 0x20); in pci_read_general_device_header() 96 header->BAR5 = pci_read_config(bus, slot, func, 0x24); in pci_read_general_device_header() [all …]
|
D | msi.h | 102 int pci_disable_msi(void *header); 110 int pci_start_msi(void *header);
|
D | pci.h | 61 struct pci_device_structure_header_t header; member 93 struct pci_device_structure_header_t header; member 137 struct pci_device_structure_header_t header; member
|
D | msi.c | 231 int pci_start_msi(void *header) in pci_start_msi() argument 233 struct pci_device_structure_header_t *ptr = (struct pci_device_structure_header_t *)header; in pci_start_msi() 289 int pci_disable_msi(void *header) in pci_disable_msi() argument 291 struct pci_device_structure_header_t *ptr = (struct pci_device_structure_header_t *)header; in pci_disable_msi()
|
/DragonOS-0.1.2/kernel/src/driver/acpi/ |
D | acpi.h | 79 struct acpi_system_description_table_header_t header; member 104 struct acpi_system_description_table_header_t header; member 124 struct apic_Interrupt_Controller_Structure_header_t header; member 135 struct apic_Interrupt_Controller_Structure_header_t header; member 150 struct acpi_system_description_table_header_t header; member 161 struct acpi_system_description_table_header_t header; member
|
D | acpi.c | 173 kdebug("offset=%d", sizeof(rsdt->header)); in acpi_init() 174 acpi_RSDT_Entry_num = (rsdt->header.Length - 36) / 4; in acpi_init() 176 printk_color(ORANGE, BLACK, "RSDT Length=%dbytes.\n", rsdt->header.Length); in acpi_init() 213 acpi_RSDT_Entry_num = (rsdt->header.Length - 36) / 4; in acpi_init() 215 printk_color(ORANGE, BLACK, "RSDT Length=%dbytes.\n", rsdt->header.Length); in acpi_init()
|
/DragonOS-0.1.2/docs/kernel/boot/ |
D | multiboot2.md | 17   由于Multiboot2的信息存储在自`multiboot2_boot_info_addr`开始的一段连续的内存空间之中,且不同类型的header的长度不同,因此设计了一迭代… 28   指定的handler。当某个header的tag与该handler所处理的tag相同时,handler将处理该header,并返回true。
|
/DragonOS-0.1.2/kernel/src/driver/interrupt/apic/ |
D | apic.c | 64 …struct apic_Interrupt_Controller_Structure_header_t *header = (struct apic_Interrupt_Controller_St… in apic_io_apic_init() local 65 while (header->length > 2) in apic_io_apic_init() 67 header = (struct apic_Interrupt_Controller_Structure_header_t *)ent; in apic_io_apic_init() 68 if (header->type == 1) in apic_io_apic_init() 76 ent += header->length; in apic_io_apic_init() 590 …struct apic_Interrupt_Controller_Structure_header_t *header = (struct apic_Interrupt_Controller_St… in apic_get_ics() local 595 while (header->length > 2) in apic_get_ics() 597 header = (struct apic_Interrupt_Controller_Structure_header_t *)ent; in apic_get_ics() 598 if (header->type == type) in apic_get_ics() 603 ent += header->length; in apic_get_ics()
|
/DragonOS-0.1.2/kernel/ |
D | build.rs | 27 .header("src/include/bindings/wrapper.h") in main()
|
D | cbindgen.toml | 11 # Options for wrapping the contents of the header: 16 header = "/* DragonOS's C FFI for rust. This file is licensed under GPLv2 */" 72 # Whether to make a C header C++ compatible. 141 # When generating a C header, the kind of declaration style to use for structs 265 # `#define`d as `ALIGNED(n)` in `header` which translates to 313 # `header` option in cbindgen.toml
|
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/ |
D | xhci.c | 2090 … dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, dev_hdr->header.Vendor_ID, in xhci_init() 2105 …uint32_t tmp = pci_read_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, … in xhci_init() 2108 … pci_write_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0x4, tmp); in xhci_init() 2152 …uint32_t tmp = pci_read_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, … in xhci_init() 2154 … pci_write_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0x60, tmp); in xhci_init() 2157 …if (((pci_read_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0) & 0xff… in xhci_init() 2158 …(((pci_read_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0) >> 16) & … in xhci_init() 2160 …((pci_read_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 8) & 0xff) ==… in xhci_init() 2163 …pci_write_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0xd8, 0xffffff… in xhci_init() 2164 …pci_write_config(dev_hdr->header.bus, dev_hdr->header.device, dev_hdr->header.func, 0xd0, 0xffffff… in xhci_init() [all …]
|
D | xhci.h | 649 void xhci_init(struct pci_device_structure_general_device_t *header);
|
/DragonOS-0.1.2/kernel/src/driver/multiboot2/ |
D | multiboot2.h | 297 struct multiboot_tag_framebuffer_info_t header; member 305 struct multiboot_tag_framebuffer_info_t header; member
|