mcdx
来自「嵌入式系统设计与实例开发实验教材二源码 多线程应用程序设计 串行端口程序设计」· 代码 · 共 45 行
TXT
45 行
This is a first attempt to create an `improved' driver for the Mitsumi drives.It is able to "live together" with mcd.c, if you have at least two Mitsumidrives: each driver can use its own drive.To allow this "coexistence" as long as mcdx.c is not a superset of mcd.c,this driver has to use its own device files. We use MAJOR 20 for it. So,you have to do # mknod /dev/mcdx0 b 20 0 # mknod /dev/mcdx1 b 20 1and so on, one entry for each drive to support, once.If you are using the driver as a module, you can specify your ports and IRQslike # insmod mcdx.o mcdx=0x300,11,0x304,5and so on ("address,IRQ" pairs).This will override the configuration in mcdx.h.This driver: o handles XA and (hopefully) multi session CDs as well as ordinary CDs; o supports up to 5 drives (of course, you'll need free IRQs, i/o ports and slots); o uses much less kernel memory than the standard mcd driver (no extra driver internal buffers!). o plays audio (like the `old' driver, I hope)This version doesn't support yet: o shared IRQs (but it seems to be possible - I've successfully connected two drives to the same irq. So it's `only' a problem of the driver.)This driver never will: o Read digital audio (i.e. copy directly), due to missing hardware features. heiko@lotte.sax.de
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?