Home
last modified time | relevance | path

Searched refs:uint32_t (Results 1 – 25 of 67) sorted by relevance

123

/DragonOS-0.1.7/kernel/src/common/
Dcpu.h8 extern uint32_t Cpu_cpuid_max_Basic_mop;
10 extern uint32_t Cpu_cpuid_max_Extended_mop;
16 extern uint32_t Cpu_Family_ID;
18 extern uint32_t Cpu_Extended_Family_ID;
20 extern uint32_t Cpu_Model_ID;
22 extern uint32_t Cpu_Extended_Model_ID;
24 extern uint32_t Cpu_Stepping_ID;
26 extern uint32_t Cpu_Processor_Type;
28 extern uint32_t Cpu_max_phys_addrline_size;
30 extern uint32_t Cpu_max_linear_addrline_size;
[all …]
Dkfifo.h8 uint32_t total_size; // 缓冲区总空间
9 uint32_t size; // 元素所占的字节数
10 uint32_t in_offset; // 入口偏移
11 uint32_t out_offset; // 出口偏移
73 int kfifo_alloc(struct kfifo_t *fifo, uint32_t size, uint64_t reserved);
89 void kfifo_init(struct kfifo_t *fifo, void *buffer, uint32_t size);
99 uint32_t kfifo_in(struct kfifo_t *fifo, const void *from, uint32_t size);
109 uint32_t kfifo_out(struct kfifo_t *fifo, void *to, uint32_t size);
119 uint32_t kfifo_out_peek(struct kfifo_t *fifo, void *to, uint32_t size);
130 uint32_t __always_inline kfifo_in_locked(struct kfifo_t *fifo, const void *from, uint32_t size, spi… in kfifo_in_locked()
[all …]
Dcrc32.h12 uint32_t crc32(uint32_t crc, const uint8_t *buffer, size_t len);
Dhid.h114 uint32_t unit; // HID unit
132 uint32_t value; // 暂存当前的值
140 uint32_t u_page;
Delf.h8 typedef uint32_t Elf32_Addr;
10 typedef uint32_t Elf32_Off;
11 typedef uint32_t Elf32_SWord;
12 typedef uint32_t Elf32_Word;
18 typedef uint32_t Elf64_Sword;
19 typedef uint32_t Elf64_Word;
/DragonOS-0.1.7/kernel/src/driver/pci/
Dpci.h26 uint32_t msix_offset; // msix表的offset
62 uint32_t BAR0;
63 uint32_t BAR1;
64 uint32_t BAR2;
65 uint32_t BAR3;
66 uint32_t BAR4;
67 uint32_t BAR5;
68 uint32_t Cardbus_CIS_Pointer; // 指向卡信息结构,供在 CardBus 和 PCI 之间共享芯片的设备使用。
73 uint32_t Expansion_ROM_base_address;
79 uint32_t reserved2;
[all …]
Dmsi.h10 uint32_t address_lo;
11 uint32_t address_hi;
12 uint32_t data;
13 uint32_t vector_control;
19 uint32_t msi_mask; // [PCI MSI] MSI cached mask bits
20 uint32_t msix_ctrl; // [PCI MSI-X] MSI-X cached per vector control bits
41 uint32_t msg_addr_lo;
42 uint32_t msg_addr_hi;
47 uint32_t mask;
48 uint32_t pending;
[all …]
Dmsi.c21 …nline struct pci_msix_cap_t __msi_read_msix_cap_list(struct msi_desc_t *msi_desc, uint32_t cap_off) in __msi_read_msix_cap_list()
24 uint32_t dw0; in __msi_read_msix_cap_list()
38 …ways_inline struct pci_msi_cap_t __msi_read_cap_list(struct msi_desc_t *msi_desc, uint32_t cap_off) in __msi_read_cap_list()
41 uint32_t dw0; in __msi_read_cap_list()
84 uint32_t bar_off = 0x10 + 4 * (msix_cap->dword1 & 0x7); in __msix_map_table()
94 uint32_t bar = pci_read_config(pci_dev->bus, pci_dev->device, pci_dev->func, bar_off); in __msix_map_table()
149 uint32_t cap_ptr; in pci_enable_msi()
150 uint32_t tmp; in pci_enable_msi()
202 …pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr + 0x4, (uint32_t)(message_addr & 0xffff… in pci_enable_msi()
206 (uint32_t)((message_addr >> 32) & 0xffffffff)); in pci_enable_msi()
[all …]
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/
Dahci.h138 uint32_t data[1]; // Payload
198 uint32_t rsvd; // More reserved
201 uint32_t DMAbufOffset; // Byte offset into buffer. First 2 bits must be 0
204 uint32_t TransferCount; // Number of bytes to transfer. Bit 0 must be 0
207 uint32_t resvd; // Reserved
215 uint32_t is; // 0x10, interrupt status
216 uint32_t ie; // 0x14, interrupt enable
217 uint32_t cmd; // 0x18, command and status
218 uint32_t rsv0; // 0x1C, Reserved
219 uint32_t tfd; // 0x20, task file data
[all …]
Dahci.c10 void ahci_cpp_init(uint32_t *count_ahci_devices, struct pci_device_structure_header_t *ahci_devs[MA… in ahci_cpp_init()
28 uint32_t bar5 = gen_devs[0]->BAR5; in ahci_cpp_init()
/DragonOS-0.1.7/user/libs/libc/src/include/export/sys/
Dtypes.h11 typedef uint32_t uid_t;
12 typedef uint32_t gid_t;
25 typedef uint32_t blkcnt_t;
26 typedef uint32_t blksize_t;
27 typedef uint32_t dev_t;
29 typedef uint32_t nlink_t;
32 typedef uint32_t useconds_t;
34 typedef uint32_t clock_t;
40 #define __socklen_t uint32_t
51 typedef uint32_t pthread_once_t;
[all …]
/DragonOS-0.1.7/kernel/src/arch/x86_64/
Dx86_64_ipi.h29 void ipi_send_IPI(uint32_t dest_mode, uint32_t deliver_status, uint32_t level, uint32_t trigger,
30uint32_t vector, uint32_t deliver_mode, uint32_t dest_shorthand, uint32_t destination);
Dx86_64_ipi.c4 void ipi_send_IPI(uint32_t dest_mode, uint32_t deliver_status, uint32_t level, uint32_t trigger, in ipi_send_IPI()
5uint32_t vector, uint32_t deliver_mode, uint32_t dest_shorthand, uint32_t destination) in ipi_send_IPI()
33 …*(uint32_t *)(APIC_LOCAL_APIC_VIRT_BASE_ADDR + 0x310) = (uint32_t)(((*(ul *)&icr_entry) >> 32) & 0… in ipi_send_IPI()
34 …*(uint32_t *)(APIC_LOCAL_APIC_VIRT_BASE_ADDR + 0x300) = (uint32_t)((*(ul *)&icr_entry) & 0xfffffff… in ipi_send_IPI()
/DragonOS-0.1.7/kernel/src/smp/
Dipi.h23 extern void ipi_send_IPI(uint32_t dest_mode, uint32_t deliver_status, uint32_t level, uint32_t trig…
24uint32_t vector, uint32_t deliver_mode, uint32_t dest_shorthand, uint32_t destination);
Dsmp.h18 int kick_cpu(uint32_t cpu_id);
20 uint32_t smp_get_total_cpu();
/DragonOS-0.1.7/kernel/src/common/sys/
Dtypes.h11 typedef uint32_t uid_t;
12 typedef uint32_t gid_t;
25 typedef uint32_t blkcnt_t;
26 typedef uint32_t blksize_t;
27 typedef uint32_t dev_t;
29 typedef uint32_t nlink_t;
32 typedef uint32_t useconds_t;
34 typedef uint32_t clock_t;
42 #define __socklen_t uint32_t
55 typedef uint32_t pthread_once_t;
[all …]
/DragonOS-0.1.7/kernel/src/driver/interrupt/apic/
Dapic_timer.h34 static __always_inline void apic_timer_set_init_cnt(uint32_t init_cnt) in apic_timer_set_init_cnt()
49 static __always_inline void apic_timer_set_LVT(uint32_t vector, uint32_t mask, uint32_t mode) in apic_timer_set_LVT()
51 register uint32_t val = (mode << 17) | vector | (mask ? (APIC_LVT_INT_MASKED) : 0); in apic_timer_set_LVT()
58 static __always_inline void apic_timer_write_LVT(uint32_t value) in apic_timer_write_LVT()
70 static __always_inline uint32_t apic_timer_get_LVT() in apic_timer_get_LVT()
82 static __always_inline uint32_t apic_timer_get_current() in apic_timer_get_current()
85 return (uint32_t)rdmsr(0x839); in apic_timer_get_current()
97 uint32_t val = apic_timer_get_LVT(); \
/DragonOS-0.1.7/kernel/src/libs/
Dkfifo.c15 int kfifo_alloc(struct kfifo_t *fifo, uint32_t size, uint64_t reserved) in kfifo_alloc()
35 void kfifo_init(struct kfifo_t *fifo, void *buffer, uint32_t size) in kfifo_init()
51 uint32_t kfifo_in(struct kfifo_t *fifo, const void *from, uint32_t size) in kfifo_in()
62 uint32_t tmp = fifo->total_size - fifo->in_offset; in kfifo_in()
86 uint32_t kfifo_out(struct kfifo_t *fifo, void *to, uint32_t size) in kfifo_out()
96 uint32_t tmp = fifo->total_size - fifo->out_offset; in kfifo_out()
120 uint32_t kfifo_out_peek(struct kfifo_t *fifo, void *to, uint32_t size) in kfifo_out_peek()
130 uint32_t tmp = fifo->total_size - fifo->out_offset; in kfifo_out_peek()
Dcpu.c94 void cpu_cpuid(uint32_t mop, uint32_t sop, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *e… in cpu_cpuid()
110 uint32_t cpu_get_core_crysral_freq() in cpu_get_core_crysral_freq()
112 uint32_t a = 0, b = 0, c = 0, d = 0; in cpu_get_core_crysral_freq()
Dcrc32.c7 uint32_t const crc32_table[256] = {
49 uint32_t crc32(uint32_t crc, uint8_t const *buffer, size_t len) in crc32()
/DragonOS-0.1.7/kernel/src/libs/libUI/
Dtextui.h96 uint32_t id; // 窗口id
152 …har_window(struct textui_window_t *window, uint16_t character, uint32_t FRcolor, uint32_t BKcolor);
162 int textui_putchar(uint16_t character, uint32_t FRcolor, uint32_t BKcolor);
176 uint32_t __textui_get_current_window_id();
Dscreen_manager.h21 uint32_t width; // 帧缓冲区宽度(pixel或columns)
22 uint32_t height; // 帧缓冲区高度(pixel或lines)
23 uint32_t size; // 帧缓冲区大小(bytes)
24 uint32_t bit_depth; // 像素点位深度
Dtextui-render.c124 uint32_t *fb = (uint32_t *)textui_framework.buf->vaddr; in __textui_render_chromatic()
126 uint32_t FRcolor = character->FRcolor & 0x00ffffff; in __textui_render_chromatic()
128 uint32_t BKcolor = character->BKcolor & 0x00ffffff; in __textui_render_chromatic()
130 uint32_t x = index * TEXTUI_CHAR_WIDTH; in __textui_render_chromatic()
131 uint32_t y = actual_line * TEXTUI_CHAR_HEIGHT; in __textui_render_chromatic()
138 addr = (uint32_t *)(fb + textui_framework.buf->width * (y + i) + x); in __textui_render_chromatic()
/DragonOS-0.1.7/kernel/src/exception/
Dsoftirq.h17 extern void rs_raise_softirq(uint32_t sirq_num);
18 extern void rs_unregister_softirq(uint32_t sirq_num);
20 extern void rs_clear_softirq_pending(uint32_t softirq_num);
/DragonOS-0.1.7/kernel/src/arch/x86_64/math/
Dbitcount.h9 static __always_inline int __clz(uint32_t x) in __clz()
57 static __always_inline int __ctz(uint32_t x) in __ctz()

123