Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | -- Documentation/cdrom/sjcd |
| 2 | 80% of the work takes 20% of the time, |
| 3 | 20% of the work takes 80% of the time... |
| 4 | (Murphy's law) |
| 5 | |
| 6 | Once started, training can not be stopped... |
| 7 | (Star Wars) |
| 8 | |
| 9 | This is the README for the sjcd cdrom driver, version 1.6. |
| 10 | |
| 11 | This file is meant as a tips & tricks edge for the usage of the SANYO CDR-H94A |
| 12 | cdrom drive. It will grow as the questions arise. ;-) |
| 13 | For info on configuring the ISP16 sound card look at Documentation/cdrom/isp16. |
| 14 | |
| 15 | The driver should work with any of the Panasonic, Sony or Mitsumi style |
| 16 | CDROM interfaces. |
| 17 | The cdrom interface on Media Magic's soft configurable sound card ISP16, |
| 18 | which used to be included in the driver, is now supported in a separate module. |
| 19 | This initialisation module will probably also work with other interfaces |
| 20 | based on an OPTi 82C928 or 82C929 chip (like MAD16 and Mozart): see the |
| 21 | documentation Documentation/cdrom/isp16. |
| 22 | |
| 23 | The device major for sjcd is 18, and minor is 0. Create a block special |
| 24 | file in your /dev directory (e.g., /dev/sjcd) with these numbers. |
| 25 | (For those who don't know, being root and doing the following should do |
| 26 | the trick: |
| 27 | mknod -m 644 /dev/sjcd b 18 0 |
| 28 | and mount the cdrom by /dev/sjcd). |
| 29 | |
| 30 | The default configuration parameters are: |
| 31 | base address 0x340 |
| 32 | no irq |
| 33 | no dma |
| 34 | (Actually the CDR-H94A doesn't know how to use irq and dma.) |
| 35 | As of version 1.2, setting base address at boot time is supported |
| 36 | through the use of command line options: type at the "boot:" prompt: |
| 37 | linux sjcd=<base_address> |
| 38 | (where you would use the kernel labeled "linux" in lilo's configuration |
| 39 | file /etc/lilo.conf). You could also use 'append="sjcd=<configuration_info>"' |
| 40 | in the appropriate section of /etc/lilo.conf |
| 41 | If you're building a kernel yourself you can set your default base |
| 42 | i/o address with SJCD_BASE_ADDR in /usr/src/linux/drivers/cdrom/sjcd.h. |
| 43 | |
| 44 | The sjcd driver supports being loaded as a module. The following |
| 45 | command will set the base i/o address on the fly (assuming you |
| 46 | have installed the module in an appropriate place). |
| 47 | insmod sjcd.o sjcd_base=<base_address> |
| 48 | |
| 49 | |
| 50 | Have fun! |
| 51 | |
| 52 | If something is wrong, please email to vadim@rbrf.ru |
| 53 | or vadim@ipsun.ras.ru |
| 54 | or model@cecmow.enet.dec.com |
| 55 | or H.T.M.v.d.Maarel@marin.nl |
| 56 | |
| 57 | It happens sometimes that Vadim is not reachable by mail. For these |
| 58 | instances, Eric van der Maarel will help too. |
| 59 | |
| 60 | Vadim V. Model, Eric van der Maarel, Eberhard Moenkeberg |