Home
last modified time | relevance | path

Searched refs:uint8_t (Results 1 – 25 of 43) sorted by relevance

12

/DragonOS-0.1.5/kernel/src/driver/disk/ahci/
Dahci.h59 uint8_t fis_type; // FIS_TYPE_REG_H2D
61 uint8_t pmport : 4; // Port multiplier
62 uint8_t rsv0 : 3; // Reserved
63 uint8_t c : 1; // 1: Command, 0: Control
65 uint8_t command; // Command register
66 uint8_t featurel; // Feature register, 7:0
69 uint8_t lba0; // LBA low register, 7:0
70 uint8_t lba1; // LBA mid register, 15:8
71 uint8_t lba2; // LBA high register, 23:16
72 uint8_t device; // Device register
[all …]
/DragonOS-0.1.5/kernel/src/driver/pci/
Dpci.h30 uint8_t bus;
31 uint8_t device;
32 uint8_t func;
40 uint8_t RevisionID; // 修订ID,指定特定设备的修订标志符
41 uint8_t ProgIF; // 编程接口字节,一个只读寄存器,指定设备具有的寄存器级别的编程接口(如果有的话)
42 uint8_t SubClass; // 子类。指定设备执行的特定功能的只读寄存器
43 uint8_t Class_code; // 类代码,一个只读寄存器,指定设备执行的功能类型
45uint8_t CacheLineSize; // 缓存线大小:以 32 位为单位指定系统缓存线大小。设备可以限制它可以支持的缓存线大小的数量,如果不支持的值写入该字段,设备将表现得好像写入了 0…
46 uint8_t LatencyTimer; // 延迟计时器:以 PCI 总线时钟为单位指定延迟计时器。
47uint8_t HeaderType; // 标头类型 a value of 0x0 specifies a general device, a value of 0x1 specifies…
[all …]
Dmsi.h25 uint8_t is_msix : 1; // [PCI MSI/X] True if MSI-X
26 uint8_t can_mask : 1; // [PCI MSI/X] Masking supported?
27 uint8_t is_64 : 1; // [PCI MSI/X] Address size: 0=32bit 1=64bit
37 uint8_t cap_id;
38 uint8_t next_off;
57 uint8_t cap_id;
58 uint8_t next_off;
Dpci.c8 static void pci_checkBus(uint8_t bus);
308 static void pci_checkFunction(uint8_t bus, uint8_t device, uint8_t function) in pci_checkFunction()
323uint8_t SecondaryBus = ((struct pci_device_structure_pci_to_pci_bridge_t *)header)->Secondary_Bus_… in pci_checkFunction()
328 static int pci_checkDevice(uint8_t bus, uint8_t device) in pci_checkDevice()
358 for (uint8_t func = 1; func < 8; ++func) in pci_checkDevice()
375 static void pci_checkBus(uint8_t bus) in pci_checkBus()
377 for (uint8_t device = 0; device < 32; ++device) in pci_checkBus()
411 for (uint8_t func = 0; func < 8; ++func) in pci_checkAllBuses()
482 void pci_get_device_structure(uint8_t class_code, uint8_t sub_class, struct pci_device_structure_he… in pci_get_device_structure()
/DragonOS-0.1.5/kernel/src/driver/usb/
Dusb.h31 uint8_t len; // 整个描述符的大小(字节)
32 uint8_t type;
41 uint8_t len;
42 uint8_t type;
44 uint8_t _class;
45 uint8_t subclass;
46 uint8_t protocol;
47 uint8_t max_packet_size;
52 uint8_t manufacturer_index;
53 uint8_t procuct_index;
[all …]
/DragonOS-0.1.5/kernel/src/driver/acpi/
Dacpi.h81 uint8_t hardware_rev_id;
82 uint8_t comparator_count : 5; // Number of Comparators in 1st Timer Block
83 uint8_t counter_size : 1; // COUNT_SIZE_CAP counter size
84 uint8_t reserved0 : 1;
85 uint8_t legacy_replacement : 1; // LegacyReplacement IRQ Routing Capable
88 uint8_t address_space_id; // 0 - system memory, 1 - system I/O
89 uint8_t register_bit_width;
90 uint8_t register_bit_offset;
91 uint8_t reserved1;
94 uint8_t hpet_number;
[all …]
/DragonOS-0.1.5/kernel/src/driver/virtio/
Dvirtio.h10 uint8_t get_virtio_net_device(uint8_t * bus, uint8_t *device,uint8_t * function);
Dvirtio.c13 static uint8_t NETWORK_CLASS = 0x2;
14 static uint8_t ETHERNET_SUBCLASS = 0x0;
21 uint8_t get_virtio_net_device(uint8_t * bus, uint8_t *device,uint8_t * function) in get_virtio_net_device()
/DragonOS-0.1.5/kernel/src/libs/
Dcrc7.c5 const uint8_t crc7_table[256] = {
31 uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len) in crc7()
Dcrc8.c7 const uint8_t crc8_table[256] = {
33 uint8_t crc8(uint8_t crc, uint8_t const *buffer, size_t len) in crc8()
Dcrc16.c34 uint16_t crc16(uint16_t crc, uint8_t const *buffer, size_t len) in crc16()
Dcrc32.c49 uint32_t crc32(uint32_t crc, uint8_t const *buffer, size_t len) in crc32()
/DragonOS-0.1.5/kernel/src/driver/multiboot2/
Dmultiboot2.h196 uint8_t red;
197 uint8_t green;
198 uint8_t blue;
255 uint8_t external_specification[512];
260 uint8_t external_specification[256];
288 uint8_t framebuffer_bpp;
290 uint8_t framebuffer_type;
291 uint8_t reserved;
307 uint8_t framebuffer_red_field_position;
308 uint8_t framebuffer_red_mask_size;
[all …]
Dmultiboot2.c29 tag = (struct iter_data_t *)((uint8_t *)tag + ALIGN(tag->size, 8))) in multiboot2_iter()
66 for (; (uint8_t *)mmap < (uint8_t *)_iter_data + _iter_data->size; in multiboot2_get_memory()
67 …mmap = (struct multiboot_mmap_entry_t *)((uint8_t *)mmap + ((struct multiboot_tag_mmap_t *)_iter_d… in multiboot2_get_memory()
71 …resource = (struct multiboot_mmap_entry_t *)((uint8_t *)resource + ((struct multiboot_tag_mmap_t *… in multiboot2_get_memory()
/DragonOS-0.1.5/kernel/src/driver/usb/xhci/
Dxhci.h16 const uint8_t xhci_controller_irq_num[XHCI_MAX_HOST_CONTROLLERS] = {157, 158, 159, 160};
72 uint8_t u1_device_exit_latency; // 0~10ms
73 uint8_t Reserved;
169 uint8_t MaxSlotsEn; // Max slots enabled
229 uint8_t bmRequestType;
230 uint8_t bRequest;
299 uint8_t code; // Completion code
304 uint8_t VF_ID;
305 uint8_t slot_id; // the id of the slot associated with the
385 uint8_t rh_port_num; // root hub port number
[all …]
/DragonOS-0.1.5/kernel/src/common/
Dcrc7.h12 uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len);
Dcrc8.h12 uint8_t crc8(uint8_t crc, const uint8_t *buffer, size_t len);
Dhid.h108 uint8_t report_id; // report id(from incoming report)
109 uint8_t type; // 数据类型:FEATURE / INPUT / OUTPUT
110uint8_t attribute; // report field attribute. (2 = (Data,Var,Abs,No Wrap,Linear,Preferred State,No…
128 const uint8_t *report_desc; // 指向report descriptor的指针
131 uint8_t item; // 暂存当前的item
Dcrc16.h12 uint16_t crc16(uint16_t crc, const uint8_t *buffer, size_t len);
Dcrc32.h12 uint32_t crc32(uint32_t crc, const uint8_t *buffer, size_t len);
Dcrc64.h12 uint64_t crc64(uint64_t crc, const uint8_t *buffer, size_t len);
/DragonOS-0.1.5/kernel/src/driver/interrupt/apic/
Dapic.h19 extern uint8_t __apic_enable_state;
330 …_make_rte_entry(struct apic_IO_APIC_RTE_entry *entry, uint8_t vector, uint8_t deliver_mode, uint8_…
331uint8_t deliver_status, uint8_t polarity, uint8_t irr, uint8_t trigger, uint8_t mask, uint8_t dest…
Dapic.c21 uint8_t __apic_enable_state = APIC_XAPIC_ENABLED;
636 …_make_rte_entry(struct apic_IO_APIC_RTE_entry *entry, uint8_t vector, uint8_t deliver_mode, uint8_… in apic_make_rte_entry()
637uint8_t deliver_status, uint8_t polarity, uint8_t irr, uint8_t trigger, uint8_t mask, in apic_make_rte_entry()
638 uint8_t dest_apicID) in apic_make_rte_entry()
/DragonOS-0.1.5/kernel/src/libs/libUI/
Dscreen_manager.h12 #define SCM_FRAMWORK_TYPE_TEXT (uint8_t)0
13 #define SCM_FRAMWORK_TYPE_GUI (uint8_t)1
47 uint8_t type;
72 int scm_register_alloc(const char *name, const uint8_t type, struct scm_ui_framework_operations_t *…
/DragonOS-0.1.5/kernel/src/driver/hid/
Dhidparse.c22 static int *__get_report_offset(struct hid_parser *parser, const uint8_t report_id, const uint8_t r…
48 char *__spaces(uint8_t cnt) in __spaces()
61 static __always_inline uint32_t __format_value(uint32_t value, uint8_t size) in __format_value()
66 value = (uint32_t)(uint8_t)value; in __format_value()
116 static uint8_t space_cnt = 0; in hid_parse()
241 parser->data.type = (uint8_t)(parser->item & HID_ITEM_MASK); in hid_parse()
242 parser->data.attribute = (uint8_t)parser->value; in hid_parse()
244 … __get_report_offset(parser, parser->data.report_id, (uint8_t)(parser->item & HID_ITEM_MASK)); in hid_parse()
293 parser->data.report_id = (uint8_t)parser->value; in hid_parse()
360 parser.report_desc = (const uint8_t *)report_data; in hid_parse_report()
[all …]

12