NetBSD/sys/arch/evbsh3/conf/files.shbus
lukem ecb81c3f6d - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
  "options FOO=xxx"). options that take a value were converted to
  defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00

72 lines
1.8 KiB
Plaintext

# $NetBSD: files.shbus,v 1.8 2001/11/28 10:21:13 lukem Exp $
#
# Config file and device description for machine-independent SHBus code.
# Included by ports that need it. Requires that the SCSI files be
# defined first.
# ports should specify appropriate major numbers for the following
# devices:
# mcd, scd, wd, wt
device shb {[port = -1], [size = 0],
[iomem = -1], [iosiz = 0],
[irq = -1], [drq = -1], [drq2 = -1]}
attach shb at mainbus
file arch/evbsh3/evbsh3/shb.c shb needs-flag
# Misc devices
device wdog
attach wdog at shb
file arch/sh3/dev/wdog.c wdog needs-flag
#
# Serial drivers
#
defflag opt_sci.h SCICONSOLE
defparam opt_sci.h SCICN_SPEED
device sci: tty
attach sci at shb
file arch/sh3/dev/sci.c sci needs-flag
defflag opt_scif.h SCIFCONSOLE
defparam opt_scif.h SCIFCN_SPEED
device scif: tty
attach scif at shb
file arch/sh3/dev/scif.c scif needs-flag
# XXXX pcic here because it needs to be late. The catch: pcic needs
# to be late, so devices which attach to it are attached late. But it
# needs to be before its isa and pci attachments. This answer is
# non-optimal, but I don't have a better answer right now.
# PCIC pcmcia contoller
# XXX this needs to be done very late, so it's done here. This feels
# like a kludge, but it might be for the best.
defparam PCIC_SHB_ALLOC_IOBASE
defparam PCIC_SHB_ALLOC_IOSIZE
defparam PCIC_SHB_INTR_ALLOC_MASK
device shpcic: pcmciabus
file arch/sh3/dev/shpcic.c shpcic
# PCIC pcmcia contoller
attach shpcic at shb with pcic_shb
file arch/sh3/dev/pcic_shb.c pcic_shb
file arch/sh3/dev/pcic_shbsubr.c pcic_shb
# PCIC pcmcia contoller
#attach pcic at pci with pcic_pci
#file dev/pci/i82365_pci.c pcic_pci
# this wants to be probed as late as possible.
#
# Machine-independent PCMCIA drivers
#
device fdc {drive = -1}
include "dev/pcmcia/files.pcmcia"