/DragonOS-0.1.2/kernel/src/common/ |
D | cpu.h | 8 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 …]
|
D | kfifo.h | 8 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 …]
|
D | crc32.h | 12 uint32_t crc32(uint32_t crc, const uint8_t *buffer, size_t len);
|
/DragonOS-0.1.2/kernel/src/driver/disk/ahci/ |
D | ahci.h | 138 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 …]
|
/DragonOS-0.1.2/kernel/src/filesystem/fat32/ |
D | internal.h | 12 static inline uint32_t __fat32_calculate_LBA(uint32_t first_data_sector, uint32_t sec_per_clus, uin… in __fat32_calculate_LBA() 25 static inline uint32_t __fat32_LBA_to_cluster(uint32_t first_data_sector, uint32_t sec_per_clus, ui… in __fat32_LBA_to_cluster()
|
D | fat_ent.h | 15 int fat32_alloc_clusters(struct vfs_index_node_t *inode, uint32_t *clusters, int32_t num_clusters); 34 uint32_t fat32_read_FAT_entry(struct block_device * blk, fat32_sb_info_t *fsbi, uint32_t cluster); 45 …rite_FAT_entry(struct block_device * blk, fat32_sb_info_t *fsbi, uint32_t cluster, uint32_t value); 58 …_find_empty_dentry(struct vfs_index_node_t *parent_inode, uint32_t num, uint32_t mode, uint32_t *r… 87 …fill_shortname(struct vfs_dir_entry_t *dEntry, struct fat32_Directory_t *target, uint32_t cluster); 97 …ir_entry_t *dEntry, struct fat32_LongDirectory_t *target, uint8_t checksum, uint32_t cnt_longname);
|
D | fat32.h | 39 uint32_t BPB_HiddSec; // 隐藏扇区数 40 uint32_t BPB_TotSec32; // 32位扇区总数 42 uint32_t BPB_FATSz32; // FAT32每FAT扇区数 45 uint32_t BPB_RootClus; // 根目录起始簇号 53 uint32_t BS_VolID; // 卷序列号 68 uint32_t FSI_LeadSig; // FS info扇区标志符 数值为0x41615252 70 uint32_t FSI_StrucSig; // 另一个标志符,数值为0x61417272 71 uint32_t FSI_Free_Count; // 上一次记录的空闲簇数量,这是一个参考值 72 uint32_t FSI_Nxt_Free; // 空闲簇的起始搜索位置,这是为驱动程序提供的参考值 74 uint32_t FSI_TrailSig; // 结束标志,数值为0xaa550000 [all …]
|
D | fat_ent.c | 17 int fat32_alloc_clusters(struct vfs_index_node_t *inode, uint32_t *clusters, int32_t num_clusters) in fat32_alloc_clusters() 27 uint32_t *buf = (uint32_t *)kzalloc(fsbi->bytes_per_sec, 0); in fat32_alloc_clusters() 126 uint32_t fat32_read_FAT_entry(struct block_device *blk, fat32_sb_info_t *fsbi, uint32_t cluster) in fat32_read_FAT_entry() 130 uint32_t fat_ent_per_sec = (fsbi->bytes_per_sec >> 2); // 该值应为2的n次幂 in fat32_read_FAT_entry() 132 uint32_t buf[256]; in fat32_read_FAT_entry() 152 …_write_FAT_entry(struct block_device *blk, fat32_sb_info_t *fsbi, uint32_t cluster, uint32_t value) in fat32_write_FAT_entry() 156 uint32_t fat_ent_per_sec = (fsbi->bytes_per_sec >> 2); // 该值应为2的n次幂 in fat32_write_FAT_entry() 157 uint32_t *buf = kzalloc(fsbi->bytes_per_sec, 0); in fat32_write_FAT_entry() 185 …tory_t *fat32_find_empty_dentry(struct vfs_index_node_t *parent_inode, uint32_t num, uint32_t mode, in fat32_find_empty_dentry() 186 uint32_t *res_sector, uint64_t *res_cluster, in fat32_find_empty_dentry() [all …]
|
/DragonOS-0.1.2/kernel/src/driver/pci/ |
D | pci.h | 26 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 …]
|
D | msi.h | 10 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 …]
|
/DragonOS-0.1.2/kernel/src/arch/x86_64/ |
D | x86_64_ipi.h | 29 void ipi_send_IPI(uint32_t dest_mode, uint32_t deliver_status, uint32_t level, uint32_t trigger, 30 … uint32_t vector, uint32_t deliver_mode, uint32_t dest_shorthand, uint32_t destination);
|
D | x86_64_ipi.c | 4 void ipi_send_IPI(uint32_t dest_mode, uint32_t deliver_status, uint32_t level, uint32_t trigger, in ipi_send_IPI() 5 … uint32_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.2/user/libs/libc/src/sys/ |
D | types.h | 11 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.2/kernel/src/smp/ |
D | ipi.h | 23 extern void ipi_send_IPI(uint32_t dest_mode, uint32_t deliver_status, uint32_t level, uint32_t trig… 24 … uint32_t vector, uint32_t deliver_mode, uint32_t dest_shorthand, uint32_t destination);
|
/DragonOS-0.1.2/kernel/src/common/sys/ |
D | types.h | 11 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.2/kernel/src/driver/interrupt/apic/ |
D | apic_timer.h | 34 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.2/kernel/src/sched/ |
D | sched.h | 26 uint32_t size; 28 uint32_t sched_policy; 35 uint32_t sched_priority; 43 uint32_t sched_util_min; 44 uint32_t sched_util_max;
|
/DragonOS-0.1.2/kernel/src/libs/ |
D | kfifo.c | 15 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()
|
D | crc32.c | 7 uint32_t const crc32_table[256] = { 49 uint32_t crc32(uint32_t crc, uint8_t const *buffer, size_t len) in crc32()
|
D | cpu.c | 94 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()
|
/DragonOS-0.1.2/kernel/src/libs/libUI/ |
D | textui.h | 96 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();
|
D | screen_manager.h | 21 uint32_t width; // 帧缓冲区宽度(pixel或columns) 22 uint32_t height; // 帧缓冲区高度(pixel或lines) 23 uint32_t size; // 帧缓冲区大小(bytes) 24 uint32_t bit_depth; // 像素点位深度
|
D | textui-render.c | 124 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.2/kernel/src/exception/ |
D | softirq.h | 48 void register_softirq(uint32_t irq_num, void (*action)(void *data), void *data); 55 void unregister_softirq(uint32_t irq_num); 60 int clear_softirq_pending(uint32_t irq_num);
|
/DragonOS-0.1.2/docs/kernel/filesystem/fat32/ |
D | index.md | 32 uint32_t BPB_HiddSec; // 隐藏扇区数 33 uint32_t BPB_TotSec32; // 32位扇区总数 35 uint32_t BPB_FATSz32; // FAT32每FAT扇区数 38 uint32_t BPB_RootClus; // 根目录起始簇号 46 uint32_t BS_VolID; // 卷序列号 63 uint32_t FSI_LeadSig; 65 uint32_t FSI_StrucSig; 66 uint32_t FSI_Free_Count; 67 uint32_t FSI_Nxt_Free; 69 uint32_t FSI_TrailSig;
|