Home
last modified time | relevance | path

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

12

/DragonOS-0.1.8/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.8/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.8/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.8/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.c27 tag = (struct iter_data_t *)((uint8_t *)tag + ALIGN(tag->size, 8))) in multiboot2_iter()
64 for (; (uint8_t *)mmap < (uint8_t *)_iter_data + _iter_data->size; in multiboot2_get_memory()
65 …mmap = (struct multiboot_mmap_entry_t *)((uint8_t *)mmap + ((struct multiboot_tag_mmap_t *)_iter_d… in multiboot2_get_memory()
69 …resource = (struct multiboot_mmap_entry_t *)((uint8_t *)resource + ((struct multiboot_tag_mmap_t *… in multiboot2_get_memory()
/DragonOS-0.1.8/kernel/src/libs/
Dcrc8.c7 const uint8_t crc8_table[256] = {
33 uint8_t crc8(uint8_t crc, uint8_t const *buffer, size_t len) in crc8()
Dcrc7.c5 const uint8_t crc7_table[256] = {
31 uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len) in crc7()
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()
Dcrc64.c50 uint64_t crc64(uint64_t crc, uint8_t const *buffer, size_t len) in crc64()
/DragonOS-0.1.8/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
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);
Dcrc16.h12 uint16_t crc16(uint16_t crc, const uint8_t *buffer, size_t len);
/DragonOS-0.1.8/kernel/src/driver/interrupt/apic/
Dapic.h18 extern uint8_t __apic_enable_state;
329 …_make_rte_entry(struct apic_IO_APIC_RTE_entry *entry, uint8_t vector, uint8_t deliver_mode, uint8_…
330uint8_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;
641 …_make_rte_entry(struct apic_IO_APIC_RTE_entry *entry, uint8_t vector, uint8_t deliver_mode, uint8_… in apic_make_rte_entry()
642uint8_t deliver_status, uint8_t polarity, uint8_t irr, uint8_t trigger, uint8_t mask, in apic_make_rte_entry()
643 uint8_t dest_apicID) in apic_make_rte_entry()
/DragonOS-0.1.8/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.8/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 …]
/DragonOS-0.1.8/kernel/src/arch/x86_64/include/asm/
Dcmpxchg.h30 volatile uint8_t *__ptr = (volatile uint8_t *)(_ptr); \
/DragonOS-0.1.8/docs/kernel/core_api/
Dkernel_api.md701 **`uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len)`**
703 **`uint8_t crc8(uint8_t crc, const uint8_t *buffer, size_t len)`**
705 **`uint16_t crc16(uint16_t crc, uint8_t const *buffer, size_t len)`**
707 **`uint32_t crc32(uint32_t crc, uint8_t const *buffer, size_t len)`**
709 **`uint64_t crc64(uint64_t crc, uint8_t const *buffer, size_t len)`**
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.c17 extern void ps2_keyboard_parse_keycode(uint8_t input);
147 ps2_keyboard_parse_keycode((uint8_t)x); in ps2_keyboard_handler()
148 uint8_t count = kfifo_in((struct kfifo_t *)buf_vaddr, &x, sizeof(unsigned char)); in ps2_keyboard_handler()

12