Commit Graph

1560 Commits

Author SHA1 Message Date
cgd 625dbd8f87 in allegedly-MI code, if we're gonna use '#pragma pack(N)', #pragma pack()
should be used to reset the packing.  (#pragma pack(4) was used here
before.  "wrong!")
2000-06-08 18:22:15 +00:00
soren 10e30038a9 Fix braino in previous, pointed out by Jaromir. 2000-06-06 18:42:47 +00:00
soren 63649c5744 Make the frontend print a newline. 2000-06-06 16:27:49 +00:00
tsutsui 8c4d1bf1f9 Adapt MI ncr53c9x changes. 2000-06-05 15:08:00 +00:00
cgd cffb580806 Implement the more flexiable `evcnt' interface as discussed (briefly) on
tech-kern and now documented in evcnt(9).
2000-06-04 19:14:14 +00:00
jhawk 1e59d99d28 For all network drivers that call ether_ifattach(), and also
have _detach() functions:
  Ensure that softc keeps state about whether the attach succeeded,
  and make the detach function return immediately if the attach did
  not complete.
2000-05-29 17:37:12 +00:00
thorpej 649ff32f2b Rather than using a magic constant, use `com_scratch' as the offset
in UART space to the interrupt CSR.
2000-05-20 18:25:41 +00:00
thorpej e7d81a3225 Fix a tyop, pointed out by Bill Studenmund. 2000-05-15 23:56:49 +00:00
jdolecek 2185bcc386 MI part of MicroChannel Architecture bus support
This work is based on code written by Scott D. Telford, the IBM
Token Ring card attachment was written by Gregory McGarry.

XXX this is still very experimental and development version; use at your
XXX own risk
2000-05-11 15:42:00 +00:00
jhawk e02d0e3597 Back out rev 1.7 of i82365_isa.c; 0x300-0x3ff, or even 0x330-0x3ff
is not a reasonable place to allocate 12-bit pcmcia iospace.
It seems to cause conflicts on a large number of modern laptops,
necesitating hand-patching of the kernel (mostly due to
video devices in the upper range of that space).

This will presumably cause problems on the NEC Versa 6030X,
however that appears to be a vastly less common case than
the laptops that are inconvenienced by the current state.

12-bit iospace now uses 0x400-0xfff.
2000-05-09 17:59:39 +00:00
mycroft 319d44bfb1 Adjust asm patterns for newer versions of GCC. 2000-05-03 21:20:07 +00:00
thorpej 712326ecbd Traditionally, the floppy controller was configured at 0x3f0 for 8 ports,
but the registers actually begin at 0x3f2, and this is what PNPBIOS reports
for the floppy controller resources.  Adjust the register offsets and the
mapping of them for the ISA front-end to compensate, so that the PNPBIOS
attachment of the floppy controller actually works.
2000-05-02 03:33:45 +00:00
thorpej 5e915fcab9 Nuke some dead code. 2000-05-02 03:32:09 +00:00
augustss 2365a92cb5 Add Creative Music System driver. From Gregory McGarry <g.mcgarry@ieee.org> 2000-05-01 22:48:33 +00:00
jdolecek 520f9dc581 pasfind(): avoid silly bug - if bus_space_map() of SB I/O space failed,
we used bad label and tried to bus_space_unmap() invalid memory
	region

Fixes port-i386/9992 by Jarkko Teppo <jate@uwasa.fi>.
2000-04-28 08:51:42 +00:00
thorpej 0cde36f780 Carve off the ISA configuration bits from the floppy driver. Driver is
still ISA-specific, but we can attach ISA instances with different
configuration mechanisms now.
2000-04-23 16:47:45 +00:00
explorer d592132506 the status register is _always_ at 0x420 -- grr. How should I put this in the config file rather than hard-coded? 2000-04-21 20:13:41 +00:00
explorer 1118b3ee75 Add driver for Addonics FlexPort 8S (and probably 4S, but not tested) 2000-04-21 17:48:30 +00:00
thorpej 4044b5a41c Use separate callouts for motor-on and motor-off. Fixes a condition
where the floppy driver would wedge because a motor-on timeout would
be cancelled by another I/O operation cancelling a motor-off timeout.

From enami tsugutomo <enami@sm.sony.co.jp>.
2000-04-07 16:58:53 +00:00
thorpej 91d6998394 Combine the Alpha, BeBox, and i386 ISA floppy drivers with a sledgehammer.
Not a perfect solution, but this is two less versions of this driver I
now have to modify.
2000-04-07 16:32:03 +00:00
itojun f564201ae9 sync with ata driver change (dma_start args). 2000-04-02 02:07:52 +00:00
augustss 169ac5b3c1 Remove register declarations. 2000-03-30 12:41:09 +00:00
simonb 9ff7681a33 Don't need to include <sys/conf.h> here. 2000-03-29 03:43:31 +00:00
mycroft 528bd4a794 Move esp declaration to conf/files. 2000-03-25 19:58:04 +00:00
tsutsui 9100212ef0 Add a "sc_rev" member to ncr5380_softc and handle CXD1180 quirk
in MI ncr5380sbc.
2000-03-25 15:27:54 +00:00
ad b84aceb90d The bus_space stuff handles byte order conversions for us. 2000-03-25 13:38:35 +00:00
thorpej fc96443d15 New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 07:01:25 +00:00
pk 4f91a51915 Move `nca' declaration to `conf/files'. 2000-03-20 11:03:42 +00:00
tsutsui 553896782a Cosmetics. ( 0x80 -> NCRSTAT_INT ) 2000-03-20 03:49:22 +00:00
mycroft c2150bf8bf Adapt to ncr53c9x change. 2000-03-19 21:27:01 +00:00
rh 783a9476be Track name change espvar.h -> esp_isavar.h so 'make includes' works again. 2000-03-19 09:11:50 +00:00
mycroft 48e59fc985 esp -> esp_isa 2000-03-18 21:50:20 +00:00
mycroft 4a915758fd esp -> esp_isa 2000-03-18 21:49:33 +00:00
mycroft b1d2b97787 Change footprint of ncr5380_intr() to match normal interrupt handler usage. 2000-03-18 17:14:34 +00:00
mycroft 28b4015ca2 GC. 2000-03-18 16:52:20 +00:00
mycroft 0af581a1a1 Add a ncr5380_attach() routine which does part of the initialization, attaches
the scsibus, and does the addref/delref dance.
2000-03-18 16:13:22 +00:00
mycroft 7e9aa53f0a nca -> nca_isa 2000-03-18 13:17:03 +00:00
mycroft 5960b2aec6 Move some code around in preparation for nca_pcmcia. 2000-03-18 13:05:20 +00:00
ad 534da504b9 Cosmetic change. 2000-03-16 15:09:59 +00:00
thorpej f76ce3b475 Only poll for bell completion if we're calling in from cnbell(). Fixes
a problem reported by Lennart Augustsson.
2000-03-10 06:10:34 +00:00
groo 7e6d7b8613 use bus independent probe 2000-03-09 04:19:03 +00:00
thorpej 42144199a1 - Make the pcppi and pckbd drivers cooperate a little more -- pckbd provides
a call to hook up a bell-ringer (since the keyboard itself has no bell).
  This eliminates the need for #ifdefs for the bell-ringer in the pckbd
  driver.
- Add cnbell() support to pckbd.
2000-03-06 21:40:08 +00:00
enami d2b929f576 Fix naming think-o. 2000-02-28 05:30:19 +00:00
mycroft 9a06ea04a2 Fix the same race condition while initializing the socket. 2000-02-27 03:25:03 +00:00
mycroft 7794bfe183 Reorder the usage of intr_establish/intr_disestablish with respect to setting
the CSC_INTR register, to insure that the IRQ is not left floating and enabled
at any point.  Eliminates stray interrupts during the IRQ probe.
2000-02-27 03:08:00 +00:00
mycroft a3ae8af043 Allow a flag to be set to force polling for socket events. 2000-02-27 00:14:27 +00:00
thorpej 52169104c5 Fill in the softc's bus space tag (OOPS!). 2000-02-26 05:11:27 +00:00
mycroft 78171a3a3e I told them not to use IST_LEVEL here. Now PCMCIA works on my AS200. *sigh* 2000-02-25 20:48:22 +00:00
groo f5f2ad429c Initial import of National Semiconductor LM7[89] Hardware Monitor with isa and
pnpbios attach.

examples:

	lm0 at pnpbios0 index?
	lm0 at isa? port 0x290


TODO: spinlocks, i2c interface.
2000-02-25 02:17:43 +00:00
ad 28fc2b2ee8 Add a DPT ISA HBA frontend, tested lightly with a PM2021A/9X. There are some
issues.
2000-02-24 18:49:06 +00:00