Home
last modified time | relevance | path

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

12

/DragonOS-0.1.3/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 …]
Dahci.c192 uint8_t ipm = (ssts >> 8) & 0x0F; in check_type()
193 uint8_t det = ssts & 0x0F; in check_type()
380 cmdfis->lba0 = (uint8_t)startl; in ahci_read()
381 cmdfis->lba1 = (uint8_t)(startl >> 8); in ahci_read()
382 cmdfis->lba2 = (uint8_t)(startl >> 16); in ahci_read()
385 cmdfis->lba3 = (uint8_t)(startl >> 24); in ahci_read()
386 cmdfis->lba4 = (uint8_t)starth; in ahci_read()
387 cmdfis->lba5 = (uint8_t)(starth >> 8); in ahci_read()
471 cmdfis->lba0 = (uint8_t)startl; in ahci_write()
472 cmdfis->lba1 = (uint8_t)(startl >> 8); in ahci_write()
[all …]
/DragonOS-0.1.3/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;
/DragonOS-0.1.3/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.3/kernel/src/filesystem/fat32/
Dfat32.h27 uint8_t BS_jmpBoot[3]; // 跳转指令
28 uint8_t BS_OEMName[8]; // 生产厂商名
30 uint8_t BPB_SecPerClus; // 每簇扇区数
32 uint8_t BPB_NumFATs; // FAT表数量
35 uint8_t BPB_Media; // 介质描述符
48 uint8_t BPB_Reserved0[12];
50 uint8_t BS_DrvNum; // int0x13的驱动器号
51 uint8_t BS_Reserved1;
52 uint8_t BS_BootSig; // 扩展引导标记
54 uint8_t BS_VolLab[11]; // 卷标
[all …]
/DragonOS-0.1.3/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.3/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.3/kernel/src/filesystem/
DMBR.h24 uint8_t flags; // 引导标志符,标记此分区为活动分区
25 uint8_t starting_head; // 起始磁头号
28 uint8_t type; // 分区类型ID
29 uint8_t ending_head; // 结束磁头号
45 uint8_t reserved[446];
/DragonOS-0.1.3/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.3/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.3/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.3/docs/kernel/filesystem/fat32/
Dindex.md20 uint8_t BS_jmpBoot[3]; // 跳转指令
21 uint8_t BS_OEMName[8]; // 生产厂商名
23 uint8_t BPB_SecPerClus; // 每簇扇区数
25 uint8_t BPB_NumFATs; // FAT表数量
28 uint8_t BPB_Media; // 介质描述符
41 uint8_t BPB_Reserved0[12];
43 uint8_t BS_DrvNum; // int0x13的驱动器号
44 uint8_t BS_Reserved1;
45 uint8_t BS_BootSig; // 扩展引导标记
47 uint8_t BS_VolLab[11]; // 卷标
[all …]
/DragonOS-0.1.3/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;
628 …_make_rte_entry(struct apic_IO_APIC_RTE_entry *entry, uint8_t vector, uint8_t deliver_mode, uint8_… in apic_make_rte_entry()
629uint8_t deliver_status, uint8_t polarity, uint8_t irr, uint8_t trigger, uint8_t mask, uint8_t dest… in apic_make_rte_entry()
/DragonOS-0.1.3/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 *…

12