isp16.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* -- isp16.h
  2. *
  3. * Header for detection and initialisation of cdrom interface (only) on
  4. * ISP16 (MAD16, Mozart) sound card.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. *
  20. */
  21. /* These are the default values */
  22. #define ISP16_CDROM_TYPE "Sanyo"
  23. #define ISP16_CDROM_IO_BASE 0x340
  24. #define ISP16_CDROM_IRQ 0
  25. #define ISP16_CDROM_DMA 0
  26. /* Some (Media)Magic */
  27. /* define types of drive the interface on an ISP16 card may be looking at */
  28. #define ISP16_DRIVE_X 0x00
  29. #define ISP16_SONY 0x02
  30. #define ISP16_PANASONIC0 0x02
  31. #define ISP16_SANYO0 0x02
  32. #define ISP16_MITSUMI 0x04
  33. #define ISP16_PANASONIC1 0x06
  34. #define ISP16_SANYO1 0x06
  35. #define ISP16_DRIVE_NOT_USED 0x08 /* not used */
  36. #define ISP16_DRIVE_SET_MASK 0xF1 /* don't change 0-bit or 4-7-bits*/
  37. /* ...for port */
  38. #define ISP16_DRIVE_SET_PORT 0xF8D
  39. /* set io parameters */
  40. #define ISP16_BASE_340 0x00
  41. #define ISP16_BASE_330 0x40
  42. #define ISP16_BASE_360 0x80
  43. #define ISP16_BASE_320 0xC0
  44. #define ISP16_IRQ_X 0x00
  45. #define ISP16_IRQ_5 0x04 /* shouldn't be used to avoid sound card conflicts */
  46. #define ISP16_IRQ_7 0x08 /* shouldn't be used to avoid sound card conflicts */
  47. #define ISP16_IRQ_3 0x0C
  48. #define ISP16_IRQ_9 0x10
  49. #define ISP16_IRQ_10 0x14
  50. #define ISP16_IRQ_11 0x18
  51. #define ISP16_DMA_X 0x03
  52. #define ISP16_DMA_3 0x00
  53. #define ISP16_DMA_5 0x00
  54. #define ISP16_DMA_6 0x01
  55. #define ISP16_DMA_7 0x02
  56. #define ISP16_IO_SET_MASK 0x20 /* don't change 5-bit */
  57. /* ...for port */
  58. #define ISP16_IO_SET_PORT 0xF8E
  59. /* enable the card */
  60. #define ISP16_C928__ENABLE_PORT 0xF90 /* ISP16 with OPTi 82C928 chip */
  61. #define ISP16_C929__ENABLE_PORT 0xF91 /* ISP16 with OPTi 82C929 chip */
  62. #define ISP16_ENABLE_CDROM 0x80 /* seven bit */
  63. /* the magic stuff */
  64. #define ISP16_CTRL_PORT 0xF8F
  65. #define ISP16_C928__CTRL 0xE2 /* ISP16 with OPTi 82C928 chip */
  66. #define ISP16_C929__CTRL 0xE3 /* ISP16 with OPTi 82C929 chip */
  67. #define ISP16_IO_BASE 0xF8D
  68. #define ISP16_IO_SIZE 5 /* ports used from 0xF8D up to 0xF91 */