Home
last modified time | relevance | path

Searched refs:header (Results 1 – 12 of 12) sorted by relevance

/DragonOS-0.1.3/kernel/src/driver/pci/
Dpci.c20 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 …]
Dmsi.h102 int pci_disable_msi(void *header);
110 int pci_start_msi(void *header);
Dpci.h61 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
Dmsi.c231 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.3/kernel/src/driver/acpi/
Dacpi.h79 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
Dacpi.c173 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.3/docs/kernel/boot/
Dmultiboot2.md17   由于Multiboot2的信息存储在自`multiboot2_boot_info_addr`开始的一段连续的内存空间之中,且不同类型的header的长度不同,因此设计了一迭代…
28   指定的handler。当某个header的tag与该handler所处理的tag相同时,handler将处理该header,并返回true。
/DragonOS-0.1.3/kernel/src/driver/interrupt/apic/
Dapic.c65 …struct apic_Interrupt_Controller_Structure_header_t *header = (struct apic_Interrupt_Controller_St… in apic_io_apic_init() local
66 while (header->length > 2) in apic_io_apic_init()
68 header = (struct apic_Interrupt_Controller_Structure_header_t *)ent; in apic_io_apic_init()
69 if (header->type == 1) in apic_io_apic_init()
77 ent += header->length; in apic_io_apic_init()
591 …struct apic_Interrupt_Controller_Structure_header_t *header = (struct apic_Interrupt_Controller_St… in apic_get_ics() local
596 while (header->length > 2) in apic_get_ics()
598 header = (struct apic_Interrupt_Controller_Structure_header_t *)ent; in apic_get_ics()
599 if (header->type == type) in apic_get_ics()
604 ent += header->length; in apic_get_ics()
/DragonOS-0.1.3/kernel/
Dbuild.rs24 .header("src/include/bindings/wrapper.h") in main()
/DragonOS-0.1.3/kernel/src/driver/usb/xhci/
Dxhci.c2090 … 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 …]
Dxhci.h649 void xhci_init(struct pci_device_structure_general_device_t *header);
/DragonOS-0.1.3/kernel/src/driver/multiboot2/
Dmultiboot2.h297 struct multiboot_tag_framebuffer_info_t header; member
305 struct multiboot_tag_framebuffer_info_t header; member