# $Id: pnpdump.c,v 1.15a 1998/05/25 17:22:16 fox Exp $
# This is free software, see the sources for details.
# This software has NO WARRANTY, use at your OWN RISK
#
# For details of this file format, see isapnp.conf(5)
#
# For latest information on isapnp and pnpdump see:
# http://www.roestock.demon.co.uk/isapnptools/
#
# Compiler flags: -DREALTIME -DNEEDSETSCHEDULER
#
# Trying port address 0203
# Trying port address 020b
# Board 1 has serial identifier be 00 00 00 02 04 00 79 05
# Board 2 has serial identifier 30 ff ff ff ff 37 42 63 0e

# (DEBUG)
(READPORT 0x020b)
(ISOLATE PRESERVE)
(IDENTIFY *)

# Card 1: (serial identifier be 00 00 00 02 04 00 79 05)
# Vendor Id AKY0004, Serial Number 2, checksum 0xBE.
# Version 1.0, Vendor version 0.0
# ANSI string -->ASKEY 56K Plug&Play Modem <--
#
# Logical device id AKY0004
#     Device support I/O range check register
#     Device supports vendor reserved register @ 0x3a
#     Device supports vendor reserved register @ 0x3d
#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if required
# Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE AKY0004/2 (LD 0

# Multiple choice time, choose one only !

#     Start dependent functions: priority preferred
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x03e8
#             Maximum IO base address 0x03e8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
  (IO 0 (BASE 0x03e8))
#       IRQ 9.
#  (INT 0 (IRQ 9 (MODE +E)))

#       Start dependent functions: priority preferred
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x03f8
#             Maximum IO base address 0x03f8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 0 (BASE 0x03f8))
#       IRQ 4.
#             High true, edge sensitive interrupt (by default)
 (INT 0 (IRQ 4 (MODE +E)))

#       Start dependent functions: priority preferred
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x02f8
#             Maximum IO base address 0x02f8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 0 (BASE 0x02f8))
#       IRQ 3.
#             High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 3 (MODE +E)))

#       Start dependent functions: priority preferred
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x02e8
#             Maximum IO base address 0x02e8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 0 (BASE 0x02e8))
#       IRQ 3.
#             High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 3 (MODE +E)))

#       Start dependent functions: priority acceptable
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0100
#             Maximum IO base address 0x03f8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 0 (BASE 0x0100))
#       IRQ 3, 5, 7, 10 or 11.
#             High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 3 (MODE +E)))

#       Start dependent functions: priority acceptable
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0100
#             Maximum IO base address 0x03f8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 0 (BASE 0x0100))
#       IRQ 4, 5, 7, 10 or 11.
#             High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 4 (MODE +E)))

#       Start dependent functions: priority acceptable
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0100
#             Maximum IO base address 0x03f8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 0 (BASE 0x0100))
#       IRQ 3, 5, 7, 10 or 11.
#             High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 3 (MODE +E)))

#       Start dependent functions: priority acceptable
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0100
#             Maximum IO base address 0x03f8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 0 (BASE 0x0100))
#       IRQ 4, 5, 7, 10 or 11.
#             High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 4 (MODE +E)))

#     End dependent functions
  (ACT Y)
))
# End tag... Checksum 0x00 (OK)

# Card 2: (serial identifier 30 ff ff ff ff 37 42 63 0e)
# Vendor Id CSC4237, No Serial Number (-1), checksum 0x30.
#     Version 1.0, Vendor version 0.1
#     ANSI string -->CRD4237B-3 <--
#
# Logical device id CSC0000
#     Device supports vendor reserved register @ 0x3a
#     Device supports vendor reserved register @ 0x3d
#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if required
# Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE CSC4237/-1 (LD 1
#     ANSI string -->WSS/SB <--

# Multiple choice time, choose one only !

#     Start dependent functions: priority preferred
#       First DMA channel 1.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type A
(DMA 0 (CHANNEL  0))
#       Next DMA channel 3.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type A
(DMA 1 (CHANNEL  3))
#       IRQ 5.
#             High true, edge sensitive interrupt (by default)
(INT 0 (IRQ  5 (MODE +E)))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0534
#             Maximum IO base address 0x0534
#             IO base alignment 4 bytes
#             Number of IO addresses required: 4
(IO 0 (BASE 0x530))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0388
#             Maximum IO base address 0x0388
#             IO base alignment 8 bytes
#             Number of IO addresses required: 4
(IO 1 (BASE 0x0388))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0220
#             Maximum IO base address 0x0220
#             IO base alignment 32 bytes
#             Number of IO addresses required: 16
# (IO 2 (BASE 0x0220))

#       Start dependent functions: priority acceptable
#       First DMA channel 0, 1 or 3.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type A
# (DMA 0 (CHANNEL 0))
#       Next DMA channel 0, 1 or 3.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type A
# (DMA 1 (CHANNEL 0))
#       IRQ 5, 7, 9, 11, 12 or 15.
#             High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 5 (MODE +E)))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0534
#             Maximum IO base address 0x0ffc
#             IO base alignment 4 bytes
#             Number of IO addresses required: 4
# (IO 0 (BASE 0x0534))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0388
#             Maximum IO base address 0x0388
#             IO base alignment 8 bytes
#             Number of IO addresses required: 4
# (IO 1 (BASE 0x0388))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0220
#             Maximum IO base address 0x0260
#             IO base alignment 32 bytes
#             Number of IO addresses required: 16
# (IO 2 (BASE 0x0220))

#       Start dependent functions: priority functional
#       First DMA channel 0, 1 or 3.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type A
# (DMA 0 (CHANNEL 0))
#       IRQ 5, 7, 9, 11, 12 or 15.
#             High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 5 (MODE +E)))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0534
#             Maximum IO base address 0x0ffc
#             IO base alignment 4 bytes
#             Number of IO addresses required: 4
# (IO 0 (BASE 0x0534))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0388
#             Maximum IO base address 0x03f8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 4
# (IO 1 (BASE 0x0388))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0220
#             Maximum IO base address 0x0300
#             IO base alignment 32 bytes
#             Number of IO addresses required: 16
# (IO 2 (BASE 0x0220))

#     End dependent functions
 (ACT Y)
))
#
# Logical device id CSC0001
#     Device supports vendor reserved register @ 0x3a
#     Device supports vendor reserved register @ 0x3d
#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if required
# Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE CSC4237/-1 (LD 2
#     ANSI string -->GAME <--

# Multiple choice time, choose one only !

#     Start dependent functions: priority preferred
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0200
#             Maximum IO base address 0x0200
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 0 (BASE 0x0200))

#       Start dependent functions: priority acceptable
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0208
#             Maximum IO base address 0x0208
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 0 (BASE 0x0208))

#     End dependent functions
 (ACT Y)
))
#
# Logical device id CSC0010
#     Device supports vendor reserved register @ 0x3a
#     Device supports vendor reserved register @ 0x3d
#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if required
# Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE CSC4237/-1 (LD 3
#     ANSI string -->CTRL <--
#     Logical device decodes 16 bit IO address lines
#         Minimum IO base address 0x0120
#         Maximum IO base address 0x0ff8
#         IO base alignment 8 bytes
#         Number of IO addresses required: 8
# (IO 0 (BASE 0x0120))
 (ACT Y)
))
#
# Logical device id CSC0003
#     Device supports vendor reserved register @ 0x3a
#     Device supports vendor reserved register @ 0x3d
#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if required
# Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE CSC4237/-1 (LD 4
#     ANSI string -->MPU <--

# Multiple choice time, choose one only !

#     Start dependent functions: priority preferred
#       IRQ 9.
#             High true, edge sensitive interrupt (by default)
(INT 0 (IRQ  9 (MODE +E)))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0330
#             Maximum IO base address 0x0330
#             IO base alignment 8 bytes
#             Number of IO addresses required: 2
(IO 0 (BASE 0x330))

#       Start dependent functions: priority acceptable
#       IRQ 9, 11, 12 or 15.
#             High true, edge sensitive interrupt (by default)
# (INT 0 (IRQ 9 (MODE +E)))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0330
#             Maximum IO base address 0x0360
#             IO base alignment 8 bytes
#             Number of IO addresses required: 2
# (IO 0 (BASE 0x0330))

#       Start dependent functions: priority functional
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0330
#             Maximum IO base address 0x03e0
#             IO base alignment 8 bytes
#             Number of IO addresses required: 2
# (IO 0 (BASE 0x0330))

#     End dependent functions
 (ACT Y)
))
# End tag... Checksum 0x00 (OK)

# Returns all cards to the "Wait for Key" state
(WAITFORKEY)
