上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 164 下一页

2021年11月24日

摘要: Linux 内核 网络地址转换函数 in_aton、 in4_pton 和 in6_pton #ifndef _LINUX_INET_H #define _LINUX_INET_H #include <linux/types.h> /* * These mimic similar macros de 阅读全文
posted @ 2021-11-24 16:45 tycoon3 阅读(268) 评论(0) 推荐(0)
摘要: When implementing support for a new type of clock it is only necessary to include the following header:: #include <linux/clk-provider.h> To construct 阅读全文
posted @ 2021-11-24 11:53 tycoon3 阅读(91) 评论(0) 推荐(0)
摘要: linux kernel的设备驱动模型在linux kernel引入统一设备模型之后,bus、driver和device形成了设备模型中的铁三角。在驱动初始化的时候会将代表该driver的一个数据结构挂入bus上的driver链表,device的数据结构挂入bus上的devie链表,那么如何让dev 阅读全文
posted @ 2021-11-24 09:42 tycoon3 阅读(207) 评论(0) 推荐(0)

2021年11月18日

摘要: 通常将设备树源码(dts/dtsi)编译成设备树二进制文件(dtb)可以使用DTC(Device Tree Compiler)工具编译。 单文件编译 对于单文件的dts,可以采用下面的命令: # dtc命令使用方法见文末 dtc -O dtb -b 0 -o [dest_dtb_file] [src 阅读全文
posted @ 2021-11-18 16:22 tycoon3 阅读(1046) 评论(0) 推荐(0)
摘要: # # ls /sys/bus/platform/drivers/macb/ 20030000.ethernet bind uevent unbind # # cd /sys/bus/platform/drivers/macb/ # # ls 20030000.ethernet bind ueven 阅读全文
posted @ 2021-11-18 09:45 tycoon3 阅读(544) 评论(0) 推荐(0)

2021年11月16日

摘要: linux driver write writel_relaxed readb()和writeb()系列函数 1 #define readb_relaxed(c) ({ u8 __r = __raw_readb(c); __r; }) 2 #define readw_relaxed(c) ({ u1 阅读全文
posted @ 2021-11-16 17:58 tycoon3 阅读(1027) 评论(0) 推荐(0)
摘要: [ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [2] [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max 阅读全文
posted @ 2021-11-16 16:56 tycoon3 阅读(211) 评论(0) 推荐(0)
摘要: [ 0.431010] OF: tracing soc __of_get_address 1 [ 0.447918] OF: timer0: could not get #clock-cells for clk@1 [ 0.461946] OF: watchdog0: could not get # 阅读全文
posted @ 2021-11-16 15:50 tycoon3 阅读(618) 评论(0) 推荐(0)

2021年11月14日

摘要: 一般CPU频率(FCLK)高于内存、网卡等设备频率(HCLK),而串口、USB、I2C等设备频率(PCLK)更低。 分频: CPU工作于FCLK时钟;FCLK分倍频1/2或1/4等给内存、网卡、Nand flash等设备使用,即HCLK时钟;HCLK分倍频给串口、USB、I2C等低速设备,即PCLK 阅读全文
posted @ 2021-11-14 11:00 tycoon3 阅读(1178) 评论(0) 推荐(0)

2021年11月8日

摘要: [root@centos7 lesson14]# make riscv64-unknown-elf-gcc -c -o entry.o entry.S riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -mc 阅读全文
posted @ 2021-11-08 18:07 tycoon3 阅读(234) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 164 下一页

导航