Commit Graph

1633 Commits

Author SHA1 Message Date
mycroft
b9c37470a0 Fix Ultrastor 24f probe, per Andrew Gillham. 1995-12-26 17:16:55 +00:00
mycroft
3da4b2a160 The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.
1995-12-24 02:29:35 +00:00
tls
69d57286dc merge latest Thomas version with our minimal changes 1995-12-23 06:22:46 +00:00
cgd
f519e9db90 files file to define 'tcbus' attribute, to which 'tc's attach.
also defines tc device.  does _not_ define le driver, because
of conflicts with other (e.g. ISA) le drivers.  (Alpha kernel
configuration files include files.isa and files.tc.)
1995-12-20 00:54:18 +00:00
cgd
cf967a312f Machine-independent TurboChannel LANCE driver. As-is, this driver
should work properly with:
	(1) LANCE chips hanging off the system IOCTL asic,
	(2) LANCE chips TurboChannel option boards.
Support for various PMAX-family baseboard options isn't yet in this
file, but should be easy to add.
1995-12-20 00:52:16 +00:00
cgd
4c042472eb autoconfiguration information for the TurboChannels System ("IOCTL") ASIC
found in many DECstations and all of the TC-bus Alphas.  This is
provided so that the machine-independent TC if_le driver will be able
to use it.
1995-12-20 00:50:42 +00:00
cgd
eb45b93a9a machine-independent TurboChannel bus configuration. These files
deal with stuff like:
	(1) configuring built-in devices,
	(2) looking at TC slots configuring any devices found.
The lists of slots, slot locations, etc. and built-in devices
are provided by machine-dependent code.  Interrupt handling
is also provided by machine-dependent code, but the MD code provides
hooks so that standard names for 'establish' and 'disestablish'
can be used in drivers.

This code requires <machine/tc_machdep.h>, which defines some
portability types specific to the TurboChannel bus code.
1995-12-20 00:48:32 +00:00
ragge
e7aba578d3 MicroVAX III support added.
Dummy match/attach routines for tmscp.
Conversion of uda.c towards new config.
1995-12-13 19:02:47 +00:00
mycroft
7bb08a12f6 Make lewatchdog() take an int, not a short. 1995-12-11 19:48:53 +00:00
pk
0d1981416d Adapt to changed mapiodev() interface. 1995-12-11 12:43:14 +00:00
mycroft
89f8e05c10 Trim NULs, in addition to spaces, in scsi_strvis(). 1995-12-11 04:43:01 +00:00
mycroft
d51f726204 Fix typo, and eliminate some unneeded local variables. 1995-12-11 02:30:44 +00:00
mycroft
333f2e0065 Make several informational messages #ifdef LEDEBUG. 1995-12-11 02:21:56 +00:00
mycroft
77fce9fe33 Change format of probe messages slightly.
Add work-around for LANCE rev. C bug, iff LANCE_REVC_BUG is defined.
1995-12-10 08:55:07 +00:00
thorpej
7268bf552d When unconfiguring a ccd, only free as many interleave indices as
were allocated, which may not be the same as the number of components
in the ccd.  From Don Lewis <gdonl@gv.ssi1.com>.  Fixes PR #1820.
1995-12-08 19:13:26 +00:00
thorpej
1cd2ca323b Remove a couple of now unneeded assignments. 1995-12-07 21:54:24 +00:00
thorpej
b6c6d46a82 In sdminphys(), add a comment about the semantics of the "length" field
in a 6-byte read/write cdb (namely, length == 0 really means 256), and
that we handle this conservatively by limiting the transfer to 255 blocks.
*sigh* One just never knows how a pre-scsi-1 device is going to behave.
1995-12-07 19:46:00 +00:00
thorpej
c9895db015 In both cd.c and sd.c:
If the read or write request can fit into a 6-byte cdb, then
	use a 6-byte cdb, otherwise use the 10-byte as before.

In sd.c:
	In sdattach(), make a note if the device is "ancient" (i.e.
	inqbuf.version & SID_ANSII == 0).

	Implement sdminphys(): if the device is "ancient", shorten the
	transfer so it will fit into a 6-byte cdb.

These changes have eliminated the rejected read/write requests on my
Sun 3/60 with 2 ESDI disks behind an Emulex MD21.
1995-12-07 19:11:32 +00:00
christos
e159767fed Repeating my mistakes twice... I used sc-> in the pci probe routine
again, and it turned NetBSD in ostype[] to N^CtBSD... Thanks Charles (again)
Also call epstop() in the attach routine to make sure that the pci card
gets reset properly.
1995-12-05 03:30:15 +00:00
ragge
2e654caa73 UBA converted to new config. (uba's now can be *'ed). Bug causing
DMA writes to nonexistent memory pages fixed. Code for old config
of non-mass-storage devices removed. (they now must use new config).
1995-12-01 19:22:56 +00:00
pk
7a7ca00077 Add quirk for Exabyte 8200/rev. 263H (from Paul Goyette; PR#1797). 1995-11-30 10:12:04 +00:00
jtc
0cd793449e merge in changes from 1.1 release branch 1995-11-30 00:56:23 +00:00
pk
3b2862c858 Make it work on little-endian monochrome buffers; per Ted. 1995-11-29 22:12:58 +00:00
pk
12bfe2e68e Must change u_long' to u_int32_t' as Jason pointed out. 1995-11-29 22:03:53 +00:00
cgd
0f7f390b49 allow bus-specific lance drivers to use machine-independent buffer/descriptor
copy functions, and convert isa and pmax drivers to do so.
1995-11-25 01:23:51 +00:00
cgd
523c12167c fix definition of nullcnpollc, and add a prototype for it. 1995-11-25 00:03:35 +00:00
cgd
540ab1b88d since 'long's in this code are meant to be exactly 32-bits wide, use
'int32_t's instead, so that this code is usable on the alpha.
1995-11-24 23:50:51 +00:00
cgd
13bf4371ae delete extra (blank) line in comment block 1995-11-24 23:45:40 +00:00
gwr
97fc3b8321 get size of softc right 1995-11-17 23:33:34 +00:00
christos
d125a07adb My previous changes broke the pcmcia support. For now assume that all non
PCI cards look identical to ISA cards.
1995-11-13 20:50:22 +00:00
christos
7a68425190 Don't use the softc at probe time on pci devices because it has not been
allocated yet. Thanks Charles...
1995-11-12 20:55:26 +00:00
mycroft
fbecb8d22b Remove the gratuitous code to check for a disc at boot time. 1995-11-11 20:07:57 +00:00
christos
e4c4e9cb07 Add support for the 3c59x (pci) cards in the 3c5x9 driver. In addition
add the necessary bits for the 3c589 (pcmcia) card without adding any
of the pcmcia framework.
1995-11-10 19:39:21 +00:00
christos
ffa8bfeda1 pcidevs was changed 1995-11-10 19:36:29 +00:00
christos
c3ae59171a - pcidevs: add 3c590 and adaptec ultra
- aic7xxx.c: fix the probe routines to use pcidevs.h
1995-11-10 19:36:08 +00:00
ragge
f51faf62ac Dynamic allocate uba_softc and interrupt vectors.
Allow for more that one uba.
1995-11-10 19:25:46 +00:00
mycroft
d3c61be30b Convert IRQ, DRQ, and port numbers to int. 1995-11-10 05:01:05 +00:00
mycroft
38a7c4b007 Correct the format of some diagnostics. 1995-11-10 04:41:58 +00:00
mycroft
d8f6a1896b Convert IRQ, DRQ, and port numbers to int. 1995-11-10 04:30:36 +00:00
thorpej
20783f6b85 Bring in several changes from the ccd:
* Be a bit better with prototypes
	* Use struct dkdevice in vnd_softc.
	* Prevent the unit from being unconfigured while open.
	* Implement a simple locking mechanism and use it for sanity's
	  sake.
Still needs more work; needs to support disklabels and the like.
1995-11-06 20:28:09 +00:00
thorpej
664cb04670 Fix a race condition where if a process is asleep waiting on an
exclusive lock of a ccd device while another process is unconfiguring
that same device, the first process would never awaken (unless interrupted).
1995-11-06 19:58:01 +00:00
thorpej
f85819bc44 In ccdstart(), only translate the block number from partition-relative
to absolute if part != RAW_PART.
1995-11-03 02:35:54 +00:00
pk
8d78a257c0 More rogues. 1995-11-01 01:15:07 +00:00
gwr
4671e1d753 Add coyright, id string; fix comments 1995-10-26 15:46:24 +00:00
gwr
c35fd76e91 Fix a comment 1995-10-26 15:38:45 +00:00
pk
4ad1c05d71 DV_NULL should be DV_DULL. 1995-10-23 15:42:50 +00:00
pk
bcff7be6b7 DV_DISK => DV_NULL (from Mike Long; PR#1607). 1995-10-22 20:45:07 +00:00
pk
2f9169d20b Correct NE7CMD_FORMAT command (from John Kohl; PR#1637). 1995-10-20 00:02:20 +00:00
thorpej
cbef9e5129 Add missing spindle synch control, rotational offset, and RPM members
to the rigid geometry mode page.  These missing members are at the
end of the page, in space wich was previously marked "reserved".
1995-10-15 23:32:02 +00:00
mycroft
f096f370fb Use SET(), CLR(), and ISSET() macros.
Rename CFCR to LCR, and cache its value.
Check MSR before transmitting, for better flow control.
Preserve LCR_SBREAK inside comparam().
1995-10-15 19:43:04 +00:00
gwr
444e2789c6 Add quirk entries for Wangtek SCSI tapes. Also, add entry for
Tandberg 3800 (fixes PR#1592 - from Jochen Pohl).
1995-10-13 20:01:03 +00:00
thorpej
89d4987e5d Fix bad pointer deref, memory leak, and geometry calculation, pointed
out by Jochen Pohl in PR #1588.  Change the interleave index to an
array of ints rather than an array of chars to avoid losing in the event
one has more than 127 components.
1995-10-12 21:28:32 +00:00
mycroft
dbce1a97aa Add specs for ahc driver. 1995-10-10 12:16:54 +00:00
mycroft
3450507404 Make sure we only schedule one timeout to refill the mbuf queue. 1995-10-10 03:11:28 +00:00
mycroft
92221a1399 Return EINVAL if something other than a whole number of blocks is requested. 1995-10-10 02:52:56 +00:00
chopps
78bd894529 add prototypes for isr stuff fixes pr# 1284 and 1569 1995-10-09 15:19:58 +00:00
chopps
3973aeb080 fix hang bug from Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de> 1995-10-09 14:05:24 +00:00
mycroft
b216bead49 Add an Adaptec 2940 driver, by John Aycock and Justin Gibbs, ported to NetBSD by Stefan
Grefen, with several bug fixes by me.
1995-10-09 09:49:30 +00:00
thorpej
a1bc374083 Batting 1.000: fix a potential panic situation in ccdioctl() that can occur
if ccdinit() fails.
1995-10-09 05:37:57 +00:00
thorpej
ab0109ad89 Fix up a couple of comments. 1995-10-09 05:21:09 +00:00
thorpej
4e3112d39b Add the partition offset to the block number in ccdstart() as opposed
to ccdstrategy(), and do it in a way that doesn't corrupt the block number
for residuals.  (What was I _thinking_?!)
1995-10-09 01:45:34 +00:00
thorpej
b8dcfbd303 Implement a simple locking mechanism and use it, for sanity's sake.
In ccdopen(), don't update the disklabel if any partition is already open.
Prevents race bewteen ccdstrategy() and ccdgetdisklabel().
1995-10-09 00:46:45 +00:00
gwr
9a79c5a043 Machine-independent RAM-disk driver. 1995-10-08 23:30:57 +00:00
mycroft
85285f6ead Add a shutdown hook. 1995-10-07 09:19:13 +00:00
pk
476de93402 Remove `rc_font_ascent' from structure. 1995-10-05 13:17:51 +00:00
mycroft
d40c1f54bd Lock the underlying vnode around VOP_BMAP() and VOP_READ(). From John Kohl. 1995-10-05 06:20:57 +00:00
pk
6a7edf0b56 Move font defs back into machine-dependent area (per Jonathan Stone).
Integrate patches from der Mouse (8-bit cleanliness, FULLSCREEN option,
SMALLFONT option).
The (MD) caller of rcons_init() is now responsible for initialising `rc_font'.
1995-10-04 23:57:17 +00:00
pk
0e646ae994 Move RCONSOLE files here and rename option to RASTERCONSOLE. 1995-10-04 23:35:31 +00:00
mycroft
86939fd839 Fix typo. 1995-10-04 00:35:07 +00:00
mycroft
393a69d6db Modularize the CCB/MSCP/ACB/ECB handling a little. No functional changes. 1995-10-03 20:58:56 +00:00
mycroft
0bc6ad73eb Fix an oversight in the minphys routine. 1995-10-02 16:48:36 +00:00
mycroft
b5beeaaca9 Incorporate recent changes from Wolfgang and Stefan. 1995-10-01 20:51:34 +00:00
pk
db0107b895 Specify SCSI_DATA_OUT in sddump() (from John Kohl; PR#1482). 1995-09-30 22:57:19 +00:00
thorpej
b93138b93d Add another broken NEC CD-ROM drive to The List. Fixes PR #1451. 1995-09-26 23:37:50 +00:00
thorpej
a47ab73248 memcmp -> bcmp. Fixes PR #1518. 1995-09-26 22:56:54 +00:00
pk
601a054fb3 Remove a sun3-ism. 1995-09-26 21:04:27 +00:00
thorpej
26419c5a8b Don't declare Debugger(). It's handled in <sys/systm.h> 1995-09-26 19:31:15 +00:00
thorpej
249cddaaa7 Don't declare Debugger(). It's handled in <sys/systm.h>.
#include <sys/systm.h> where necessary, as suggested by Jonathan Stone.
Fixes PR #1511.
1995-09-26 19:26:48 +00:00
thorpej
dd2f3dddef Don't declare Debugger(). It's handled in <sys/systm.h> 1995-09-26 19:24:26 +00:00
hpeyerl
ddbb956f35 fixes a typo, the case where iomem is specified, but iosize is not, and
moves a couple of ee16 specific calls into a 'if ee16' protected block.
From Andrew Gillham <gillham@Digitron.COM>
1995-09-26 13:24:48 +00:00
pk
a8e925d362 rcons (Raster CONSole) brought over here from the sparc area.
sparc device dependencies have been removed, as well as all references
to `struct fbdevice's. Clients need to #include <dev/rcons/rcons.h>.
1995-09-17 19:56:30 +00:00
pk
0fbf2ca04a Make *print() a message if no scsibus was attached. Also, return something
valid.
1995-09-14 20:43:09 +00:00
hpeyerl
abe82a6680 Etherexpress-16 driver collision by Andrew Gillham <gillham@Digitron.COM>. 1995-09-14 12:41:32 +00:00
jonathan
d7b9b56e07 Rename the old pmax SCSI driver's "struct scsi_device" to
"struct pmax_scsi_device", to avoid name conflicts with the sys/dev/scsi
SCSI driver.
1995-09-13 19:35:53 +00:00
jonathan
dec12b783d Initialization and keymapping code for DEC LK-201 and successor keyboards,
abstrated out of the pmax scc and dc7085 drivers.
1995-09-11 21:23:07 +00:00
jonathan
23366c17ff Rename the old 4.4bsd/pmax old-style config "struct device" to
"struct pmax_device" to avoid conflict with <sys/device.h>.

Change the signature of interrupt-handlers to take a void *
(a pointer to the softc) and return an int (indicating spurious
interrupts or other conditions.)
1995-09-11 08:29:11 +00:00
thorpej
7e85a5a412 Fix misplaced #ifdef. 1995-09-06 04:15:59 +00:00
pk
589d83d6a8 Patches from Jason Thorpe to deal with 4/110 scsi (PR#1422).
Also repairs a problem noted by David Jones: detect scsi phase correctly.
1995-09-03 22:26:02 +00:00
thorpej
0696b30519 Wrap dk stats stuff in `#ifdef WORKING_DISK_STATISTICS'. Takes care
of PR #1388 until such time as dk stats works on all ports.  XXX !!
1995-08-29 23:13:44 +00:00
thorpej
d6160bdc1b Fix typo in comment, from Chris P. Ross. 1995-08-23 01:08:10 +00:00
jonathan
97cf65df4a Change pmax ASC driver to use dynamically-allocated softc structures.
Concomitant changes to code that prints driver/unit name: use dv_xname
and dv_unit, instead of doing pointer arithmetic on elements of the static
softc array.

Remove support for old config.  The old-config "driver" structure
is still present, because the pmax non-MI SCSI driver needs it.

Merge some off Per Fogelstrom's changes for the Pica driver,
which uses the machine-independent SCSI code. This is #ifdef'ed
out until the DMA is fixed to work on Decstations, too.
1995-08-21 21:22:43 +00:00
thorpej
a2db2c1899 Fix typo, pointed out by cross@va.pubnix.com (Chris P. Ross). 1995-08-21 18:25:52 +00:00
pk
d9e37f2bc7 Set the scsi link before calling config_attach(), so target/lun info is
available to, say, dk_establish().
1995-08-21 09:30:09 +00:00
leo
b7680d7c14 Select the right register structure for the Atari. Although it's big-endian,
it uses the odd bytes. Also make the registers volatile.
1995-08-20 13:24:05 +00:00
mycroft
4fec83b441 Fix oversights in previous change.
Remove ugly casts and correct spelling.
1995-08-19 04:58:44 +00:00
cgd
b0dc5d3d7f local adaptations, and fix a could of compilation errors 1995-08-19 04:35:18 +00:00
cgd
1c8b202de7 use I/O ports on the i386 1995-08-19 04:27:31 +00:00
cgd
01597582c1 fix botch in one of my previous imports 1995-08-19 04:15:29 +00:00
cgd
9980150670 Generic FDDI support by Matt Thomas. Support for DEC "PDQ" FDDI chipset
and for the PCI attachment of said chipset ("if_fpa"), also from Matt Thomas.
Arguably, pdq* doesn't belong in sys/dev/ic, but it's going to be shared by
various bus attachment devices at some point in the future, and there's no
other place that seems to fit as well.
1995-08-19 00:59:47 +00:00
cgd
8b417fd28b add 'fpa' for Matt Thomas's driver for DEC PCI FDDI boards. alphabetize. 1995-08-19 00:44:48 +00:00
cgd
c9dbf2d1d2 clean up 7/26 de snapshot import 1995-08-17 18:04:55 +00:00
thorpej
77d85de272 New version of ccd. Allows dynamic run-time configuration and
unconfiguration and supports disklabels.
1995-08-17 16:31:30 +00:00
cgd
a2e0a97608 check for null subclass pointer. From Todd Mummert 1995-08-16 04:54:50 +00:00
briggs
3560df43af CHINON CDS-535 version Q117 also needs NOLUNS. Assume all 535s do. 1995-08-14 13:01:42 +00:00
briggs
19f3c3099f Another SDEV_NOLUNS device from paul@pgoyette.bdt.com (Paul Goyette). 1995-08-13 17:48:57 +00:00
mycroft
8887de9230 opri --> s 1995-08-12 22:58:01 +00:00
mycroft
240560e9fd ia_irq has not been a power of 2 for a long time... 1995-08-12 22:37:58 +00:00
mycroft
8a9880e714 Fix oversight in previous. 1995-08-12 21:36:46 +00:00
mycroft
80d7b0695a minphys() functions really should return void. 1995-08-12 20:30:45 +00:00
jonathan
88b9b7eb4a Update DECstation drivers to use new-style config, removing
old-style config support, except for SCSI disks and tapes.
1995-08-10 04:21:35 +00:00
mycroft
e4413d1a10 Fix another comment. 1995-08-07 14:26:51 +00:00
mycroft
f657f5bf3e Make this interface simplex. It's more efficient, and sidesteps the
problem of receiving our own multicasts in promiscuous mode.  Also, fix
some outdated comments.
1995-08-07 14:16:26 +00:00
mycroft
92637a6d42 Add another Seagate disk to the list, and make all the disks match any
firmware revision.
1995-08-06 00:04:00 +00:00
mycroft
6567855472 Count collisions and errors better. 1995-08-05 23:53:18 +00:00
mycroft
82b6eec41c Use an intermediate variable to shorten label initialization code.
Make wddump() work on more machines.
1995-08-05 23:50:23 +00:00
mycroft
24a5e56396 Use an intermediate variable to shorten label initialization code. 1995-08-05 23:47:52 +00:00
jonathan
1bacfdc2dd Add preliminary support for new-style configuration: struct cfdriver,
and match and attach code.  Still use the static softc so that drivers
work with kernels configured with either new or old config.
1995-08-04 00:26:35 +00:00
mycroft
60d2d483ca Turn off the mbi diagnostics completely. 1995-07-29 23:04:54 +00:00
mycroft
a4fcbe857d Don't loop if we're out of CCBs/SCBs/MSCPs. 1995-07-28 22:49:56 +00:00
mycroft
38036ed16e Fix an oversight in the previous. 1995-07-27 05:01:08 +00:00
mycroft
e04a2a7a7f Add needs-flags for pci_subr.c. 1995-07-27 04:43:19 +00:00
mycroft
c9f7b2a185 Add PCI-specific configuration for PCnet-PCI. 1995-07-27 04:39:05 +00:00
mycroft
7ba8b413d9 Disable diagnostics related to expected mbi race condition. 1995-07-27 01:00:11 +00:00
mycroft
fc427776a7 Add stuff for I/O mapping. 1995-07-27 00:29:02 +00:00
mycroft
e8c91e1129 Fix typos. 1995-07-25 05:11:11 +00:00
mycroft
e413887539 Update to use dev/ic/am7990.c. 1995-07-24 18:04:21 +00:00
cgd
d8e7ea659c restore a deleted semicolon 1995-07-24 09:03:00 +00:00
cgd
830a91b2e9 update SCSI minphys routines' definitions to match standard minphys()
definition and usage.
1995-07-24 07:16:44 +00:00
cgd
4d0bd10d53 kill structure offest comments in non-fixed-size structures.
In some of our worlds, pointers just Aren't 4 bytes.
1995-07-24 07:08:14 +00:00
cgd
3301cf82fd update SCSI minphys routines' definitions to match standard minphys()
definition and usage.
1995-07-24 06:55:37 +00:00
cgd
a696e525b7 fix function prototypes, usages, to match what the code actually does 1995-07-24 05:54:52 +00:00
cgd
979cf41d87 merge changes from update 1995-07-24 05:26:53 +00:00
mycroft
607e071f1b Fix pasto. 1995-07-24 04:34:51 +00:00
mycroft
8170afdb2d Copy changes from ISA version. 1995-07-24 04:15:35 +00:00
mycroft
bdb9d41d7e Fix thinko in packet size diagnostic. 1995-07-24 04:12:45 +00:00
cgd
267dd7012f merge updated version from Matt Thomas, which includes dc21041 support.
There are a couple of questionable changes in here, that i'm going to
hammer out of him in the next week or so...
1995-07-24 03:54:14 +00:00
mycroft
2d37aba592 Add missing `break;'. 1995-07-24 02:46:47 +00:00
mycroft
ff82158c19 Fix typo. 1995-07-24 02:43:11 +00:00
mycroft
4f36e42ff4 Various cleanup:
* Use standard function naming conventions.
* Only increment if_ipackets when a packet was actually received.
* Check for excessively large or small packets before trying to read them.
1995-07-24 02:40:38 +00:00
mycroft
413a5efc0c Pass a softc to leget(), not an ifnet. 1995-07-24 02:29:59 +00:00
mycroft
33292f0f88 Fix typos. 1995-07-24 02:08:13 +00:00
mycroft
7998e5ab4c Various cleanup:
* Use standard function naming conventions.
* Only increment if_ipackets when a packet was actually received.
* Check for excessively large or small packets before trying to read them.
1995-07-24 02:02:45 +00:00
mycroft
b5699db68d Rename new xmit_busy back to txb_inuse. 1995-07-23 23:42:47 +00:00
mycroft
799910cb2c Remove txb_inuse. Other stylistic changes. 1995-07-23 22:12:16 +00:00
mycroft
1df91e03ca Remove a noop clearing of IFF_OACTIVE. 1995-07-23 22:09:11 +00:00
mycroft
1199b1b042 Exchange xmit_free for xmit_busy. Add BPF hook to iestart(). 1995-07-23 22:02:20 +00:00
mycroft
317db86dd3 Stylistic changes. 1995-07-23 21:37:51 +00:00
mycroft
9b2ae2a3cd Stylistic changes. 1995-07-23 21:26:48 +00:00
mycroft
4da9a5f814 Stylistic changes. 1995-07-23 21:14:31 +00:00
mycroft
644935b313 Slight rearrangement. Also, force eg_incount to 0 after a reset. 1995-07-23 20:54:23 +00:00
mycroft
ecf259e342 Call epmbufempty() any time the board is stopped. 1995-07-23 20:46:49 +00:00
mycroft
57528ce346 Init functions are always called at splimp(). 1995-07-23 20:36:51 +00:00
mycroft
6bc1cc31f8 Push the copying of the output buffer further down, with the intent of
eliminating it and outputting the mbufs directly.  Make sure the queue drains
even if packets are not failing to transmit.
1995-07-23 20:27:48 +00:00
mycroft
a8ce47fa44 Remove extra spls in el_init(). 1995-07-23 20:11:55 +00:00
mycroft
90da0e3a99 Kill return values in egstart(). 1995-07-23 19:45:42 +00:00
mycroft
3d1d0d928b Update prototypes. 1995-07-23 17:57:39 +00:00
mycroft
a16702ce45 Various:
* Fix ugly looping constructs.
* Add a missing splx().
* Eliminate sc_pktbuf.
1995-07-23 17:50:56 +00:00
mycroft
8593f3a607 Recode elread() and elget() like other drivers. 1995-07-23 17:05:26 +00:00
mycroft
a1a31f853c Fix pasto. 1995-07-23 16:43:40 +00:00
mycroft
9c26c4da18 Always use m_pkthdr.len on output. Panic if M_PKTHDR is not set. 1995-07-23 16:42:49 +00:00
mycroft
465cfd15f0 Always use m_pkthdr.len on output. Panic if M_PKTHDR is not set. 1995-07-23 16:32:33 +00:00
brezak
693043d786 GUS audio driver from John Kohl. 1995-07-19 19:58:09 +00:00
brezak
f8b400c446 Change DEBUG-->AUDIO_DEBUG. PR# port-sparc/1241 1995-07-19 19:50:16 +00:00
cgd
0b469d4a12 add/change a few quirks:
(1) all Chinon CDS-431 CD-ROMs (regardless of revision)
		are forced to only having LUN 0, at the suggestion
		of Michael Hitch.
	(2) _force_ searching of extra LUNs for the Emulex MD21/S2
		ESDI bridge.  It's pre-SCSI 1, but knows about LUNs.
		"amazing."  From Jason Thorpe.
	(3) recognize an Emulex tape adapter in front of a QIC-36
		tape, and have it forced to only LUN 0.  This is
		an odd one; vendor, name, and rev strings are all
		spaces.  Anything that mathes this is very likely
		broken, anyway, so might as well give it a shot.
		Again from Jason Thorpe.
1995-07-12 09:56:09 +00:00
cgd
d8fe81c04c implement SDEV_FORCELUNS flag, as suggested by Jason Thorpe. 1995-07-12 09:43:29 +00:00
cgd
f60db5f02a add a SDEV_FORCELUNS flag, as suggested by Jason Thorpe, to force
the SCSI code to look for LUNs on prehistoric (pre-SCSI 1) drives &
controllers, where normally it would not.
1995-07-12 09:42:00 +00:00
cgd
880567e771 fix from Onno van der Linden for large-file read timeouts on double-speed
drives.  A different read command must be used on double-speed drives.
It boggles my mind that people could design hardware this stupid.
1995-07-10 01:27:24 +00:00
cgd
5b671ea6a8 Morningstar SnapLink -> SDEV_NOLUNS, per Peter Galbavy in pr 1192. 1995-07-09 09:44:57 +00:00
cgd
21b6db23b7 play the alphabetization game 1995-07-09 09:43:07 +00:00
cgd
5a5eb678c9 QUANTUM P105S 910-10-94x A.3 -> SDEV_NOLUNS 1995-07-09 09:30:42 +00:00
pk
c5ad4c85f0 ncr5380 chip definitions and MI part of driver. 1995-07-08 21:30:41 +00:00
cgd
e574814605 insert missing call to splx() when {aha,bt}_send_mbo() returns null.
from enami@sys.ptg.sony.co.jp.
1995-07-08 00:34:16 +00:00
brezak
4b4b3ee81a Cleanup 1995-07-07 02:19:48 +00:00
brezak
dd3d2e28ed Setup irq correctly (PR#1179) 1995-07-07 02:15:12 +00:00
brezak
0bdd4aa7c2 add support for cs4231 1995-07-07 02:11:45 +00:00
brezak
106dafc42e Common splaudio and ISA_IPL_AUDIO 1995-07-07 01:58:04 +00:00
brezak
0589b5a222 Make mode a flag set. Full-dpulex fixes from John Kohl. 1995-07-07 01:52:30 +00:00
mycroft
9624704e02 Make each disk and tape driver define its own read and write functions.
Deprecate rawread() and rawwrite() completely.  Remove d_strategy from cdevsw to
force the abstraction barrier.
1995-07-05 02:32:53 +00:00
mycroft
7263209ce6 Make each disk and tape driver define its own read and write functions.
Deprecate rawread() and rawwrite() completely.  Remove d_strategy from cdevsw to
force the abstraction barrier.
1995-07-04 07:15:28 +00:00
mycroft
eb99dcc09a Fix a condition where ttywait() wouldn't be woken up. Also, short-circuit
the case of no pending input in compoll().
1995-07-04 06:47:18 +00:00
mycroft
f4b5f723e0 Remove references to if_addrlist. 1995-07-02 00:16:00 +00:00
cgd
2b71eae2c7 note that most of dev/ic's contents have changed names 1995-06-28 04:30:30 +00:00
cgd
28cbee6941 move to more appropriate (...reg.h) names. 1995-06-28 04:02:13 +00:00
cgd
bbe407930b header file got renamed 1995-06-28 03:26:36 +00:00
cgd
40e29d5890 sync with my current Alpha sources 1995-06-28 02:44:51 +00:00
cgd
50937bb63a add charles's mostly-machine-independent lance driver, which is used
by the Alpha port.
1995-06-28 02:24:50 +00:00
cgd
c319ff6546 these have moved to more appropriate names 1995-06-28 02:23:27 +00:00
cgd
1c5d265cad another CD-ROM quirk, a la PR 1166 1995-06-27 20:42:45 +00:00
chopps
5ad7f31079 udpate to match ifnets new use of sys/queue.h 1995-06-27 13:13:32 +00:00
cgd
bc9de32349 make dump stubs consistent 1995-06-26 05:34:44 +00:00
cgd
2a8d6461a8 implement new-style block device dump routine if __BDEVSW_DUMP_OLD_TYPE
not defined, otherwise use an "not implemented" stub.
1995-06-26 05:16:55 +00:00
cgd
d093e5d8b8 make dump stubs consistent 1995-06-26 05:15:33 +00:00
cgd
7491d6cbe5 if subdevices specified with wildcarded unit number, config_attach()
can change the cf_unit, so save it before attach and use saved value.
1995-06-26 04:08:04 +00:00
cgd
d8264613c8 add entry for another tweaked Texel CD-ROM. from pr 1151 1995-06-24 01:22:30 +00:00
cgd
6907f7f64d fix reference to incorrect struct (paste-o) 1995-06-21 03:56:09 +00:00
cgd
9526317aa1 vendor IDs for Acer and SIS 1995-06-20 04:50:43 +00:00
briggs
a68aae96fc David Leonard (leonard@dstc.edu.au) noticed an embedded comment
delimiter in a comment within a #define (ZSWR14_DTR_REQ).  Inserted
spaces in case someone wants to use this define at some point.
1995-06-19 13:15:08 +00:00
mycroft
6664ae1ddd Add another CD-ROM drive to The List. 1995-06-18 05:13:09 +00:00
cgd
4f7335a75a macros to split out various parts of PCI registers, adjust constants
to match.  (now, comparisons are comparisons, code doing them doesn't
have to mask.)  define types for the various parts of the registers'
contents, where practical.
1995-06-18 01:34:01 +00:00
cgd
c4640b104d define and call "pci_devinfo()", which creates a string from the
vendor & product IDs and class information, which is printed if device
isn't found.  Optionally (via "PCIVERBOSE" option) does table lookup
to try to see if it knows what the device really is (informational only...).
1995-06-18 01:28:23 +00:00
cgd
e86a68a339 prototype for pci_devinfo function 1995-06-18 01:26:50 +00:00
cgd
c644446a99 add include for the alpha, alphabetize 1995-06-18 01:24:40 +00:00
cgd
8ced60f181 make a comment reflect the way things should be done 1995-06-18 01:23:11 +00:00
cgd
2cfceff6b5 built from pcidevs list 1995-06-18 01:09:14 +00:00
cgd
27adbb1130 learn about some PCI vendor and product numbers. not yet used 1995-06-18 01:07:04 +00:00
cgd
ae76c070ec oops; forgot this in last commit 1995-06-17 23:06:44 +00:00
cgd
6f13f2448a more appropriate name, as this only has PCI support subroutines. 1995-06-17 22:40:26 +00:00
ragge
7aaf918c75 d_reset reference removed. Calling of ubareset must be solved. 1995-06-16 15:26:11 +00:00
mycroft
d9fc8ef092 Remove check for if_addrlist == 0; if_attach() always puts one address on
the list, so this is a noop.
1995-06-12 00:09:42 +00:00
mycroft
e6c81430d2 Add missing `break;'s. 1995-06-09 18:09:27 +00:00
cgd
da5b5dfa63 make match/attach routines and cfdriver struct mi 1995-06-07 06:46:04 +00:00
cgd
5a29222f9c prototype isascan, spacing 1995-06-07 06:45:44 +00:00
cgd
d4f62dcb69 update from Ignatios Souvatzis 1995-06-07 00:13:52 +00:00
cgd
3349ad1b56 update from matt thomas 1995-06-06 23:31:24 +00:00
mycroft
4bfd7749ad Various:
* Check for CTS in the correct register.
* Only do a selwakeup() if we output something.
* Don't make assumptions about what TTYDISC does.
1995-06-05 19:08:09 +00:00
cgd
dede989b85 enable the de driver 1995-06-05 01:03:45 +00:00
cgd
d0d9fe6333 set a shutdown hook 1995-06-05 01:03:30 +00:00
cgd
89c30bb2e3 do the right thing with fixed-size types. 1995-06-05 00:49:45 +00:00
cgd
96caf354eb kill old Id, add NetBSD Id 1995-06-05 00:47:42 +00:00
cgd
c71cccacde kill old Id and Log. add NetBSD Id 1995-06-05 00:46:30 +00:00
cgd
551bcffab9 dc21040 driver, from Matt Thomas 1995-06-05 00:38:18 +00:00
mycroft
5b37a8fded Handle BREAK correctly when not entering DDB. 1995-06-04 20:50:14 +00:00
mycroft
38847d04c0 Add an input FIFO, and fix several flow control problems. Based on code from
Felix A. Croes.
1995-06-04 20:39:22 +00:00
brezak
cea924779e call hw->setfd with param not ptr to it 1995-06-04 15:33:50 +00:00
pk
7d18c2534d Add `Maxtor LXT-213S', this time without a Sun OEM addition. 1995-06-02 21:44:11 +00:00
jtc
d045544ebd Changed ns82450 to ns8250 and dropped ns82550 from probe console messages. 1995-06-01 21:26:51 +00:00
mycroft
488bc82ac3 Fix multicast filter calculation. 1995-05-28 11:29:46 +00:00
mycroft
addaff473b Only use the `no pending interrupt' bit in the IIR; the other bits
are too unreliable on clone chips.
1995-05-28 03:26:37 +00:00
cgd
bad826164e split single-subdevice lookup & attachment into a subroutine
(pci_attach_subdev()).  remove pciattach() function and the pcicd cfdriver
struct, the former because thre are a lot of attachment actions which really
are machine-dependent (perhaps even "most"), and the latter because now that
both pcimatch() and pciattach() are machine-dependent it's bad style to
declare them here and it gains nothing.
1995-05-23 03:43:06 +00:00
cgd
3ebc44f6e1 isa softc structs are larger than 'struct device' 1995-05-17 02:07:03 +00:00
cgd
c821cb684a (1) conditionalize debugger usage in comeint with DDB, not COMCONSOLE;
latter would lead to undefined symbols if DDB not defined.
(2) check for break on console, and therefore debugger entry (if ddb
	in kernel) earlier, so that the device doesn't need to be open.
(3) return immediately after breaking into the debugger in comeint().
(4) only do the normal character input routine in comintr if receive
	mask yeilds _EXACLTY_ LSR_RXRDY.  if there's only a receive
	error, or there's a receive error _and_ a received character,
	do comeint().
(former two by me.  latter two from Bob Baron <rvb@cs.cmu.edu>.)
1995-05-12 17:54:41 +00:00
jtc
8aa6c376b6 KERNEL -> _KERNEL 1995-05-11 16:52:54 +00:00
mycroft
8742c18c06 Update for slightly modified ARP handling. 1995-05-10 14:04:14 +00:00
brezak
c68110e043 Remove strings 1995-05-08 22:01:34 +00:00
brezak
2d93a58abd Don't call hardware close in mixer_close(). From Rolf Grossmann <grossman@informatik.tu-muenchen.de> 1995-05-08 17:42:07 +00:00
brezak
05f27a97ce Fix holes in device index space. PR#1028 1995-05-08 17:28:51 +00:00
brezak
f5675abf16 Set mixer type for rec and play level set. PR#1027 1995-05-08 16:06:38 +00:00
brezak
8951a20fe2 Auto-select open mode when opened half-duplex. From John Kohl. PR#1006 1995-05-05 22:36:14 +00:00
pk
7d244351cf Add `evcnt' field. 1995-05-04 19:43:27 +00:00
cgd
5d25b2c50e machine-independent definitions for the Motorola MC146818A Real Time Clock
and compatible chips, including the  Dallas Semicontuctor DS1287A.
This chip is used in PC's, DECstations, and Alphas, at least...
1995-05-04 19:31:18 +00:00
cgd
011aa68805 looks like some extra ')'s were left in here. 1995-05-03 21:38:57 +00:00
mycroft
1d2f0bce2a Make the byte-shifting code consistent. 1995-05-03 19:38:45 +00:00
cgd
1e0c08b206 uncomment cy driver spec; i386 conf.c needs the header file. 1995-05-03 17:09:28 +00:00
mycroft
825d2fee22 Add Masahiro SEKIGUCHI's MB8696[05] driver, ported, with some additional
changes by me:
* Make autoconfiguration work correctly for more models of AT1700.
* Make the debugging code more robust and complete.
* Tweak the output routine for better performance, and to eliminate an ugly
kluge.
Various other style cleanup.  Needs more work.
1995-05-01 02:47:07 +00:00
mycroft
03e77f5565 Tweak the output routine for slightly better performance. 1995-05-01 02:39:30 +00:00
hpeyerl
c9319ad5c4 <break> --> ddb if defined(comconsole).
(if you have a serial console and you hit break, you get ddb).
1995-04-28 00:34:08 +00:00
hpeyerl
686da9ddb7 copyright foo. 1995-04-27 14:50:58 +00:00
mycroft
6bb0f284d0 Turn off some debugging code by default. 1995-04-27 01:46:47 +00:00
brezak
1f4378da60 Fix nits from Mike Long <mike.long@analog.com> PR#996 1995-04-26 21:45:57 +00:00
pk
8d90aefeb0 New audio driver from Rolf Grossmann. 1995-04-25 20:05:32 +00:00
gwr
e49b0de53f short -> int (alignment) 1995-04-24 21:34:04 +00:00
pk
6404739df8 AMD9730 telephony chip (used to be sparc/dev/bsd_audioreg.h). 1995-04-24 19:17:17 +00:00
pk
30f71c550f A couple of fixes frm Rolf Grossmann. 1995-04-24 19:13:52 +00:00
mycroft
bfab570cda Add constants for some keyboard controller commands. 1995-04-21 09:16:16 +00:00
mycroft
cb856a9a4d Watchdog now takes an int, not a short. 1995-04-19 22:42:51 +00:00
mycroft
9e28a35469 Fix thinko in previous change. 1995-04-19 22:04:33 +00:00
mycroft
53d73c77a5 Garbage collect #includes. 1995-04-19 19:10:35 +00:00
mycroft
4c28b7cb87 Change needs-count' to needs-flag'. 1995-04-19 19:02:54 +00:00
mycroft
e1315808a7 Implement comtty(). 1995-04-19 18:59:27 +00:00
mycroft
496acd4619 Correct a couple of things, and add a `fe' device. 1995-04-19 02:11:10 +00:00
mycroft
800b1f371a Fix obvious bug in reading from SB_MIC_PORT. 1995-04-17 23:48:06 +00:00
mycroft
fa37f29dc8 Make some functions non-static. 1995-04-17 23:04:31 +00:00
cgd
15552a0e17 if_le conflicts with the Alpha; move description back to i386 1995-04-17 20:23:32 +00:00
cgd
af67271a66 try to actually (gasp!) describe the drivers. 1995-04-17 17:54:15 +00:00
cgd
d61eaf6f6d ISA config.new files description. 1995-04-17 16:58:30 +00:00
cgd
fac8a6879e MI EISA config.new file lists 1995-04-17 16:15:48 +00:00
cgd
982230db44 update for new locations 1995-04-17 15:48:20 +00:00
cgd
8a640328ed clean up several ISA device interfaces: autoconfiguration, header
inclusion, and interrupt configuration.  more work still needs to be done,
but it's getting better...
1995-04-17 12:06:30 +00:00
cgd
5f252bb8ea config.new files description for PCI mi files. 1995-04-17 07:46:10 +00:00
cgd
224a7f4533 config.new description of SCSI mi files. 1995-04-17 07:15:40 +00:00
cgd
edc749be89 cleanup; mostly KNF. 1995-04-15 10:35:24 +00:00
mycroft
04e937dcbd Don't boundary check I/O to the `raw' partition. 1995-04-15 05:01:26 +00:00
chopps
ed0da4a701 couple small changes plus a new watchdog timer from Ignatios Souvatzis <is@beverly.rhein.de> 1995-04-14 16:57:19 +00:00
cgd
d8b4389dc3 cast pointer to long when converting to integer type 1995-04-13 04:16:16 +00:00
mycroft
d57b9b75ba Take endianness into account in ed_ring. 1995-04-12 16:12:42 +00:00
pk
333a55a4ce Remove duplicate definition of `constty'. 1995-04-11 22:08:06 +00:00
chopps
a04aa1397a fix up some changes 1995-04-11 18:51:55 +00:00
mellon
57289e2cf2 Split cninit from cons so ports that can't use it don't have to include it. 1995-04-11 10:06:38 +00:00
mycroft
893d53414a Sync with the rest of the world. Various additional cleanup. 1995-04-11 05:46:53 +00:00
mycroft
c7a7d5c262 Sync with the rest of the world. 1995-04-11 05:10:20 +00:00
mycroft
8d8af964a7 Move NIC register definitions to a global location. 1995-04-11 04:45:26 +00:00
mycroft
6e9015b37a This is deprecated. 1995-04-11 04:44:44 +00:00
mycroft
b703c76655 Update for if.h. Define helper macros for accessing NIC registers. Optimize
edrint() a little more.
1995-04-11 04:38:42 +00:00
mycroft
d4b1924adb LANCE register definitions, plus some utility macros for the machine-
independent driver.
1995-04-11 04:17:50 +00:00
mycroft
24a8feea65 Adjust for endianness, and move CHAN_[AB] out of here. 1995-04-11 02:35:18 +00:00
mycroft
9b0d3f54e8 Move this into a generic location. 1995-04-11 02:29:25 +00:00
mycroft
70839d3b04 Change start and watchdog return values to void. 1995-04-10 18:21:42 +00:00
mycroft
68c8c80929 kernel_pmap --> pmap_kernel() 1995-04-10 16:48:27 +00:00
mycroft
e25c1817cf kernel_pmap --> pmap_kernel() 1995-04-10 13:08:28 +00:00
mycroft
6e992fcd83 Add a dummy cnstop(). 1995-04-10 06:30:52 +00:00
mycroft
95c5c4f79f Most of the console functions return void. Also change interrupt logic
slightly.
1995-04-10 01:05:55 +00:00
mycroft
affcd0e2c8 Properly prototype the switch table functions. Add conf.h-like macros for
defining the switch tables.
1995-04-10 00:50:27 +00:00
mycroft
87d43afd46 Clean up to match common code, and fix a typo. 1995-04-07 22:27:42 +00:00
mycroft
3836533fc6 Add another broken CD-ROM drive to The List. 1995-04-04 05:44:32 +00:00
mycroft
0e67f2a78e Rename a few constants to match the chip documentation. 1995-04-04 01:59:28 +00:00
mycroft
13ac06ec6a More debugging printf()s, from Rafal Boni. 1995-04-04 01:44:23 +00:00
mycroft
c04ae31e95 Prototype iexmit(). 1995-04-03 21:22:37 +00:00
mycroft
9085715229 Some pseudo-random cleanup, and try to start transmitting packets quicker. 1995-04-03 21:17:13 +00:00
mycroft
7e2dabf972 Add a missing unlock. 1995-04-01 10:29:41 +00:00
mycroft
508897dfcc Insert a missing unlock. 1995-04-01 10:27:56 +00:00
mycroft
03e3548ec7 Change the locking protocol to match other drivers. 1995-04-01 08:45:33 +00:00
mycroft
5ef3b8b957 Always load the TOC. Turn off the TOC bit in the mode register so the busy
light goes off.
1995-04-01 08:40:11 +00:00
ragge
a95842832d Bug fixes of interrupt handlers. 1995-03-30 20:55:23 +00:00
mycroft
e17c63cee6 Revamp the locking mechanism slightly. Update some outdated comments, and add
a few new ones.
1995-03-29 23:36:27 +00:00
mycroft
1d568eab9a Revamp the locking mechanism slightly. 1995-03-29 23:04:39 +00:00
briggs
0884490297 KERNEL -> _KERNEL. 1995-03-29 21:56:46 +00:00
jtc
db0046c14d KERNEL -> _KERNEL 1995-03-28 19:59:56 +00:00
jtc
71ab4ed9dc KERNEL -> _KERNEL 1995-03-28 18:13:48 +00:00
mycroft
aff93b44b4 Remove unused variable. 1995-03-27 21:44:11 +00:00
mycroft
657ddd6fde Remove a tiny bit of redundant code. 1995-03-27 18:08:34 +00:00
mycroft
0a3d4f358a It's not necessary to do a GETSTAT before each read. 1995-03-27 16:48:45 +00:00
mycroft
c61cb27f9c Small garbage collection, and turn off debugging info by default. 1995-03-27 16:04:07 +00:00
mycroft
306af9bd89 Largely rewritten by me, with some input from Dave Burgess. Implement most of
the CDIOC* calls correctly, improve performance by 10x when interrupts work,
and implement the same generic disk framework as other drivers.
Needs some more work.
1995-03-27 15:45:20 +00:00
jtc
7c04233887 KERNEL -> _KERNEL 1995-03-26 20:23:52 +00:00
mycroft
b51403f60d Remove the write protect check altogether, and rely on the drive to do it. 1995-03-25 19:45:18 +00:00
mycroft
12a1b9ad67 Add a rogue entry for the ANRITSU DMT780. 1995-03-25 18:41:42 +00:00
mycroft
ff6c206c3f Use void* rather than caddr_t in many places. 1995-03-25 00:00:53 +00:00
glass
911fbf48fa fix syntax error. Andreas Gustafsson <gson@clinet.fi> 1995-03-24 20:17:15 +00:00
cgd
cba4b405e4 don't let args default, return values, add protos 1995-03-24 15:29:46 +00:00
mycroft
990077ba88 Don't bother with DIOCWLABEL. 1995-03-23 12:13:37 +00:00
mycroft
06d0a67a07 Check for read-only media in open(), not write(). 1995-03-23 12:11:07 +00:00
mycroft
d21add8356 Revert cdsize() to do nothing. 1995-03-23 11:51:22 +00:00
mycroft
4712cd33dc Rearrange DIOCWDINFO a little; closer to wd.c. 1995-03-23 11:43:09 +00:00
mycroft
562ca7760b Fix typo. 1995-03-23 11:37:51 +00:00
mycroft
02df08a47e Allow DIOCWDINFO even if label is not `writable'. 1995-03-23 11:33:18 +00:00
brezak
331f0252c6 Fix probing of slave devices and remove unneeded ffs()'s 1995-03-21 14:05:28 +00:00
brezak
8193ffc379 Add support for PAS 16 basic 1995-03-15 18:45:58 +00:00
glass
af46d07f24 fix compilation error. don't bother checking for IRQ2 1995-03-15 16:43:09 +00:00
brezak
36fa07bde5 Fixes defect port-i386/860 from John Woods (jfw@jfwhome.funhouse.com) with
supplied patch. Kernel will not link with only ProAudio Spectrum driver
specified.
1995-03-14 18:43:19 +00:00
brezak
f3226ad49e Fixes defect port-i386/864 from John Woods (jfw@jfwhome.funhouse.com) with
supplied patch. pas.c doesn't recognize ProAudio Spectrum 16 Basic card.
1995-03-14 18:41:36 +00:00
mycroft
37c67f3481 Turn off two diagnostic printfs by default. 1995-03-14 02:35:11 +00:00
brezak
7ce1465911 Fix SB8 playback. From David Gluss <david@pure.com> 1995-03-13 14:37:12 +00:00
brezak
1c9582b63e Add IRQ 9 as a valid IRQ 1995-03-13 14:29:11 +00:00
cgd
f6589edbc7 spaces -> tab 1995-03-09 02:20:34 +00:00
brezak
83fffa3985 Cleanup for SB16 (From Jan Sparud) 1995-03-08 18:27:35 +00:00
mycroft
e203e49ef5 Correct spelling of `fictitious'. Add patterns for optical memory devices.
From Alistair Crooks.
1995-03-07 21:46:06 +00:00
chopps
a55b765dd3 some cleanup.. 1995-03-02 09:12:27 +00:00
cgd
a44a276543 from jason thorpe: add ccdclose(), make it work with the MI scsi code,
and add knowledge of i386 disk device names (XXX).
1995-03-02 06:40:38 +00:00
cgd
f694af6712 don't overload buffer structs; allocate and use a 'super-struct' instead. 1995-03-02 06:38:11 +00:00
chopps
e3c2563328 Fixup (c)'s and ids. 1995-03-01 11:34:02 +00:00
chopps
2ef7b2e7db new arcnet (2060) device from is@Beverly.Rhein.DE (Ignatios Souvatzis) 1995-02-28 22:03:59 +00:00
brezak
63d3904bce Use irq directly not as a mask 1995-02-28 21:47:42 +00:00
cgd
8f6f7fb7c9 use a buf-within-struct to avoid overloading b_pfcent. 1995-02-27 19:31:00 +00:00
glass
48b5b94c4f fix some typos. from frank@fwi.uva.nl (Frank van der Linden) 1995-02-27 09:10:24 +00:00
cgd
2c0f263ee7 use wdc_softc in wdccd, rather than wd_softc; from chuck cranor. (pr 828) 1995-02-27 01:08:01 +00:00
ragge
389584724a Support for uVAXII, new tmscp driver added. 1995-02-23 17:53:16 +00:00
mycroft
2986fc2fd0 Be less picky about revision numbers for some broken devices. 1995-02-22 19:32:33 +00:00
brezak
559df5705c PSS driver; needs testing with config.new 1995-02-21 04:15:03 +00:00
brezak
39b8de8e12 Driver for Windows sound system; not extensively tested 1995-02-21 02:28:42 +00:00
brezak
32eec53a2d SoundBlaster driver for SB, SB16 and SBPRO 1995-02-21 02:28:06 +00:00
brezak
a70ae7273c PAS driver; uses SB emulation for now 1995-02-21 02:27:18 +00:00
brezak
977594d1a9 Driver for ad1848 codec 1995-02-21 02:26:39 +00:00
brezak
1f5bdc75a9 New audio subsystem 1995-02-21 01:35:58 +00:00
mycroft
8b834a58ca Display more information when we get bogus data off the card. 1995-02-19 18:05:45 +00:00
mycroft
0f894be19c Rearrange epintr() to insure proper edge-trigger of the interrupt latch. 1995-02-19 06:13:53 +00:00
ragge
431121d46f Fixes for new config. 1995-02-13 00:44:21 +00:00
mycroft
a36de19f90 Make some guesses about how to properly configure the interrupt masks. Back
out part of the previous change until I get some documentation on these boards.
1995-02-10 01:37:57 +00:00
pk
e560d77223 Another Maxtor botch. 1995-02-09 10:23:14 +00:00
mycroft
e9c2b98c11 Comment a potential bit of lossage. 1995-02-02 21:08:42 +00:00
mycroft
8abb91e18d Various:
* Make synchronous negotiation work.
* Use the bitbucket when the target requests too much data.
* Loop in aicintr() until we get to a state where we have to wait.
1995-02-01 21:49:37 +00:00
mycroft
ab5662014f Correct some more of the synchronous stuff, and omit it completely if
AIC_USE_SYNCHRONOUS is 0.
1995-02-01 16:56:42 +00:00
mycroft
4653b28a42 Various:
* Always enable disconnection.
* Add some more per-controller variables: initiator ID, clock frequency,
min and max sync period.
* Correct sync period calculations.
* Remove sc_progress.
* Move most of the reselection handling into a separate function.
* Remove some outdated comments.
* Remove message bytes from FIFO even when dropping them on the floor.
* Some cosmetic cleanup.
1995-02-01 16:11:43 +00:00
mycroft
16e77e7281 Fix path to if_lereg.h. 1995-02-01 09:54:36 +00:00
mycroft
d8743f51a2 Add Exabyte 8200 to the list. 1995-02-01 09:37:54 +00:00
mycroft
c937d3b9f2 Patch from Wolfgang to fix a missing spl. 1995-02-01 09:32:45 +00:00
mycroft
52bacd79d6 Fix invocation of scsi_scsi_cmd(), per John Kohl. 1995-01-30 15:54:42 +00:00
mycroft
1076165d07 All revisions of the TDC 3600 are rogues. 1995-01-30 15:39:33 +00:00
mycroft
7639253b70 Finish last change. 1995-01-30 11:50:23 +00:00
mycroft
321b00bd07 Some drives don't grok START with LoEj=1, either. 1995-01-30 11:47:56 +00:00
mycroft
0ece1143f6 Set the LoadEject bit when issuing a START. 1995-01-30 11:37:17 +00:00
mycroft
9085638020 Some devices really do require the START before the PREVENT. This makes no
sense.
1995-01-30 11:34:25 +00:00
cgd
3a7bbb1acd lip service to making ISA support machine-independent. This is the first
round: moving the drivers into a machine-independent directory.
Some drivers (e.g. fd.c) not moved because they use other pc features (e.g.
CMOS settings), and none of the non-driver files moved, because they're
still pretty much PC specific.  eventually (when other ports with ISA
busses really start using this code), more 'high-level' ISA support will
live here.
1995-01-29 07:36:54 +00:00
cgd
f11e7e33fe use chip headers in /dev/ic 1995-01-29 02:58:20 +00:00
cgd
87ed227cb4 include files from the correct places. 1995-01-27 05:44:29 +00:00
mycroft
1611df6ae0 Update copyrights. 1995-01-26 12:05:49 +00:00
mycroft
b76a328caa Redo the `wait for spin up' code. The Mach 3 method clearly doesn't work.
Also, rearrange the first open sequences a bit; SDEV_OPEN is no longer magic.
1995-01-26 11:56:51 +00:00
mycroft
c5d5ca8150 Don't check the control port at all; too unreliable. 1995-01-26 07:35:49 +00:00
mycroft
c0e2bd26f1 Initialize the new xmit state correctly. From Rafal Boni. 1995-01-26 04:13:23 +00:00
cgd
95afef4f1d kill _PATH_VNTAB; it's no longer used by anything. 1995-01-25 04:46:30 +00:00
mycroft
66785ec427 Clean up deleted files. 1995-01-25 04:45:41 +00:00
cgd
d9f7c9f9be vn -> vnd renaming, for consistency 1995-01-25 04:45:38 +00:00
mycroft
726fa4e94f Do the PREVENT before the START. 1995-01-23 18:17:22 +00:00
mycroft
feb5b29596 Remove old, misleading comment. 1995-01-23 17:56:26 +00:00
mycroft
57f2c598c7 Various changes from Rafal Boni to improve performance and reliability. Also,
clean up the formatting a little more.
1995-01-23 04:50:08 +00:00
mycroft
01ce8db055 Fix the problem with identifying cards on warm boot. Partly from Greg Hudson. 1995-01-22 07:37:28 +00:00
mycroft
3dddacd1ce Rearrange tests so offline' has higher priority than out of paper'. 1995-01-22 00:12:39 +00:00
mycroft
68c1a35cd9 Initialize host_stat and target_stat properly. 1995-01-18 04:20:16 +00:00
mycroft
52f079131b Incorporate recent changes from Wolfgang. Recognize the 815. 1995-01-16 21:48:35 +00:00
mycroft
a6e7fe0d2a If the disk reports a block size of 0, assume it really meant 512. 1995-01-16 21:40:17 +00:00
mycroft
4a1e51751b Trivial simplification. 1995-01-16 21:34:10 +00:00
mycroft
e71e917e9d Remove unused macros. 1995-01-16 21:31:34 +00:00
mycroft
85532dd4ce Don't clear the debug flags when copying the prototype scsi_link. 1995-01-16 21:13:40 +00:00
mycroft
fcdbd2bd7b Remove outdated comment. 1995-01-16 10:36:26 +00:00
mycroft
87d587e640 Simplify some sanity checks. 1995-01-13 14:46:44 +00:00
mycroft
28775a6a5d Add a DIAGNOSTIC check. 1995-01-13 14:38:13 +00:00
mycroft
1e5cd9212d (Almost) allow sector sizes other than 512 bytes. Reduce some expensive operations. 1995-01-13 12:30:59 +00:00
mycroft
7650bd97fc Always boundary check I/O. 1995-01-13 10:46:32 +00:00
mycroft
0033c975c6 Fix another bug in the DMA code. 1995-01-13 10:22:58 +00:00
mycroft
4abdb375bc Minor rearrangement. 1995-01-13 09:40:21 +00:00
mycroft
c2bc310a37 Change the way sc_skip is used. Fix a bug in the (incomplete) DMA code. Add a
new sc_blkno (which will be useful later).
1995-01-13 08:58:16 +00:00
mycroft
83a1c4799e Add two more broken devices. 1995-01-12 10:25:44 +00:00
pk
0a22930d97 Explicitly test the RXRDY status bit on incoming characters. 1995-01-11 09:56:40 +00:00
mycroft
06b0414491 Actually, do the ID reset in elink_reset(). 1995-01-07 21:37:54 +00:00
mycroft
37e16c5747 Don't print line numbers in most of the diagnostics. 1995-01-07 06:49:35 +00:00
mycroft
d4f91d51a9 Fix a race condition between normal I/O and wd_get_parms(). 1995-01-07 03:07:22 +00:00
mycroft
7f61bec5cd Cosmetic changes, to look more like the new esp.c will. 1995-01-07 01:51:07 +00:00
mycroft
ba288b4ae1 Do the reset in the individual drivers, not in elink_idseq(). 1995-01-06 21:41:26 +00:00
mycroft
290ed068ab Remove many of the `static's, to facilitate debugging. 1995-01-04 09:02:32 +00:00
mycroft
6125e1b551 Fix oversight in previous. 1995-01-04 00:47:53 +00:00
mycroft
9e499d41b3 \
These files have been 99% rewritten from the original ast driver.  Add an
appropriate copyright notice.
1995-01-03 22:38:54 +00:00
mycroft
0349c5b9e0 Add a multiplexer for BOCA serial boards. 1995-01-03 22:26:36 +00:00
hpeyerl
09834a5bd3 This is correct according to the docs on both cards.
Doesn't seem to make any difference to the known problems though.
1995-01-03 05:04:04 +00:00
mycroft
b6c8a9a4e9 Update intr_establish() prototype. 1995-01-03 03:14:35 +00:00
mycroft
93a0c4a258 Add interrupt sharing types. 1995-01-03 01:42:11 +00:00
mycroft
b5cf1b5ddd Add interrupt sharing types. 1995-01-03 01:30:14 +00:00
mycroft
326830c1ba Use direct config for subdevices. 1995-01-02 22:27:46 +00:00
mycroft
e148dc7a64 Move setting of sc_maddr so soft config works. 1995-01-02 22:01:05 +00:00
mycroft
a774fa6fe5 Use soft configuration when possible. 1995-01-02 21:57:04 +00:00
mycroft
3a967fcbb6 More cleanup. 1995-01-02 21:27:27 +00:00
mycroft
72dec3b548 Various cleanup. 1995-01-02 20:54:01 +00:00
mycroft
3a74796b3e Need isareg.h. 1995-01-02 20:39:35 +00:00
mycroft
894bb9145f Use soft configuration where possible. 1995-01-02 20:32:55 +00:00
mycroft
2d5b04744a Don't assume ia_maddr is in the hole. 1995-01-02 20:06:29 +00:00
mycroft
dff292c275 Put Dan's broken tape drive in The List. 1995-01-01 11:37:03 +00:00
mycroft
76b0b02cc3 Fix non-serious typo. 1994-12-31 05:34:00 +00:00
mycroft
bfd9901daf Fix some oversights in the debugging code. 1994-12-30 05:33:06 +00:00
mycroft
d78ddddef6 Update the rogue entry for ancient drivers to match reality. 1994-12-30 05:23:49 +00:00
mycroft
6e9d6a0d75 And a little better... 1994-12-30 05:20:22 +00:00
mycroft
0a83cd8c57 Deal with short inquiry response a little better. 1994-12-30 05:14:52 +00:00
mycroft
5d3bd57538 Fix a couple of things in the sense printing code. 1994-12-29 13:49:57 +00:00
mycroft
f2909dc62b Increase the st_space() timeout. 1994-12-28 19:55:50 +00:00
mycroft
8fd135209c Numerous changes. Many bugs fixed, better autoconfig, a few new features. 1994-12-28 19:42:47 +00:00
hpeyerl
262b425866 temporary warning until I get new docs. 1994-12-28 16:47:50 +00:00
cgd
a596d50f29 various cleanups for -Wall, suggested by James Jegers. 1994-12-24 14:05:51 +00:00
mycroft
ce06e718ad Fix flags to isa_dmastart(). 1994-12-17 18:45:11 +00:00
mycroft
3e7afdbe8a Remove DIOCSBAD handling. It's not actually handled, so why recognize it? 1994-12-16 04:38:30 +00:00
mycroft
a395d884d5 Remove extra arg to d_open and vn_open(). 1994-12-14 19:09:13 +00:00
mycroft
ca65f2ce5d Remove dkbad.h. 1994-12-14 15:17:22 +00:00
mycroft
e694663b46 Make the diagnostics less cryptic. 1994-12-12 04:43:51 +00:00
mycroft
3e4a358e28 Patch from Thomas Eberhardt to make PCnet-32 chips work. 1994-12-12 04:39:52 +00:00
christos
303841c92e 3c509 fixes to avoid adapter getting stuck in high traffic conditions.
I don't particularly like the fixes, but at least now the 3c509 never
gets stuck. On the other hand, performance still sucks in some cases.
1994-12-10 14:52:02 +00:00
mycroft
793e542f89 Fix format of attach message. 1994-12-10 05:55:26 +00:00
dean
50c5dd6f0d fix problem with disconnects (Ralph Campbell) 1994-12-05 19:11:12 +00:00
dean
ba0ac0e803 added missing #ifdef DEBUG 1994-12-01 16:41:05 +00:00
mycroft
1b372b7e96 Remove some redundant code. 1994-12-01 13:07:28 +00:00
mycroft
0109779d43 Remove unneeded override of SCSI_NOSLEEP. 1994-12-01 12:45:25 +00:00
mycroft
c1cbd9c635 Set UIO residual count. 1994-12-01 12:36:35 +00:00
mycroft
71ab8bb627 Always set the device number correctly, even though we don't need it. 1994-12-01 12:26:37 +00:00
mycroft
d18cbacd88 Redux. 1994-12-01 12:12:08 +00:00
mycroft
1066219897 Uncomment call to scsi_user_done(), and remove a duplicate biodone() (and
another si_free()).
1994-12-01 12:04:43 +00:00
mycroft
a10cbd7179 Remove the silly statically allocated array, and simply malloc the data
structures as needed.  Also, put the buf in the malloc()ed area.  Remove a
duplicate si_free() (though this was harmless before).
1994-12-01 11:53:56 +00:00
mycroft
211b002017 Ignore ERR during diagnostics. 1994-12-01 10:45:26 +00:00
mycroft
867ebf1d84 Clear the controller active flag after a timeout. 1994-11-30 02:32:03 +00:00
mycroft
5584ff927f Don't stall the queue on CHECK SENSE if we get a reselect while selecting. 1994-11-30 02:08:01 +00:00
mycroft
639a64de08 Fix a null pointer reference. 1994-11-29 21:35:13 +00:00
mycroft
51bed8d804 Add an assertion mechanism to check for more abnormal conditions. 1994-11-29 21:29:56 +00:00
mycroft
58cb5339d6 For consistency... 1994-11-29 20:57:28 +00:00
mycroft
41b26a6dfd Handle BUS FREE phase a little differently, to get better error detection. Other
cleanup.
1994-11-29 20:08:27 +00:00
mycroft
bb90feebac Disable debugging breakpoints by default. 1994-11-29 17:56:49 +00:00
mycroft
5ac2484d95 * Redo most of the message and phase state machines. Multiple pending
message outs should now work correctly (including retransmissions).
Multiple messages ins should be more efficient.  Missing REQ after
reselection phase should now (correctly) cause a wait with ENREQINIT
set.

* Abstract out the reselection out sequence, and use it directly to
get sense info.  (This is somewhat faster than the generic done/sched
sequence.)

* If there are no ACBs available, wait interruptibly for one.

* Leave the interrupt registers alone during message in/out; just
watch for phase change.  Don't (incorrectly) reenable interrupts
during data in/out; defer that to aicintr().

* Handle command pointer per SCSI 2 spec.

* Other minor coding improvements.
1994-11-29 17:50:39 +00:00
dean
fcf0991366 new asc.c from Ralph Campbell 1994-11-28 19:05:54 +00:00
christos
6a2c060851 fix unary plus typo :-) 1994-11-25 23:19:03 +00:00
ragge
299c14af0c New handling of pte:s for physio. 1994-11-25 19:09:31 +00:00
mycroft
cba32aa25f Minor update for new autoconfig. 1994-11-25 08:17:21 +00:00
mycroft
0649f37219 Officially credit Onno. 1994-11-23 22:00:08 +00:00
mycroft
2058abab15 Forgot to commit this as part of the LBA changes. 1994-11-23 07:56:52 +00:00
mycroft
cc44b4600c There's no point in bothering to unlock what we didn't lock. 1994-11-23 07:54:15 +00:00
mycroft
6dda55519e Fix an outdated comment. 1994-11-23 03:11:01 +00:00
mycroft
a3fc466734 Use logical block addressing if available. Be a little more careful about
maintaining timeouts.  Clean up wddump() a bit.
1994-11-23 01:35:43 +00:00
mycroft
525fc36e19 Implement 32-bit reads and writes, but for now assume 16-bit mode. 1994-11-22 10:20:16 +00:00
mycroft
3a99ddf172 Add a missing newline in some error messages. 1994-11-22 09:36:56 +00:00
mycroft
db3bde9525 Implement EIDE multi-sector PIO and DMA modes, based on code from Onno van
der Linden.  Also, various structural cleanup, and fix two bogons that crept
in, and remove all of the old clustering nonsense.
1994-11-22 09:33:59 +00:00
mycroft
1e01855683 Minor fix to debugging code. 1994-11-22 05:50:48 +00:00
mycroft
85826f0fbe Fudge a couple more fields for ancient disks. 1994-11-22 05:39:16 +00:00
mycroft
e1a7bac628 Change some constant names, etc., to better match the ATA spec. 1994-11-22 05:34:49 +00:00
mycroft
95edd299b0 Add still more locking. 1994-11-22 03:23:49 +00:00
mycroft
284d17e8f0 Complete last change. 1994-11-22 00:14:24 +00:00
deraadt
0c36dd6762 C botch repair from bostic 1994-11-22 00:05:36 +00:00
mycroft
c81c637ee3 Return EIO when the drive is empty. 1994-11-21 11:37:26 +00:00
mycroft
7a1dcbfac6 Clean up open and close routines somewhat. 1994-11-21 11:28:47 +00:00
mycroft
fd32202948 Replace dev_unit with device_softc in scsi_link. Change argument to foostart()
to void*.
1994-11-21 10:39:09 +00:00
mycroft
5bd4115690 Add some missing locking, and some general cleanup. 1994-11-20 22:36:43 +00:00
mycroft
9a3840f2f0 Stylistic changes. 1994-11-18 22:25:12 +00:00
mycroft
61800cfa25 Convert port, IRQ, and DRQ numbers to ints. 1994-11-18 22:07:32 +00:00
mycroft
35cdd801e6 Convert port, IRQ, and DRQ numbers to ints. 1994-11-18 21:57:40 +00:00
deraadt
38483bbbf0 Enough Chinese torture already 1994-11-15 23:00:23 +00:00
dean
393ee3693c Surrounded call to debug routine with #ifdef DEBUG 1994-11-15 18:59:40 +00:00
mycroft
a2727ec558 Check IRQ 9, not IRQ 2. 1994-11-15 00:00:24 +00:00
mycroft
b341f7a8c0 Map IRQ 2 to IRQ 9. 1994-11-14 23:58:56 +00:00
christos
c2c3dce760 added extra argument to vn_open 1994-11-14 06:00:10 +00:00
mycroft
21e911d911 Update for new autoconfig. 1994-11-07 09:03:48 +00:00
mycroft
2a9b6f7959 Fix stupid bug in last change. 1994-11-04 23:30:15 +00:00
mycroft
4ec6774e12 Add a simplified version of wdcommand() that can be used in some cases.
Avoid needing a wd_softc inside wdprobe().
1994-11-04 23:18:06 +00:00
mycroft
3df6bf0c0e Trivial stylistic changes. 1994-11-04 21:32:23 +00:00
mycroft
854d8d96dc Rearrange slightly. 1994-11-04 19:25:34 +00:00
mycroft
cfc4633919 Remove outdated comment. 1994-11-04 19:17:47 +00:00
mycroft
b7acf321cd No longer needs icu.h. 1994-11-04 18:59:34 +00:00
mycroft
195574a7de Change all of the uses of IRQ{0-15} and bit masks to use plain numbers
rather than bit shifting.
1994-11-04 18:57:15 +00:00
mycroft
29414c5a0a Change all of the uses of IRQ{0-15} and bit masks to use plain numbers
rather than bit shifting.
1994-11-04 18:34:50 +00:00
mycroft
f8183b2d0e Make a wrapper match function to check the bus and device numbers, rather
than insisting that every driver do it.
1994-11-04 09:42:18 +00:00
mycroft
9af4fee97d Use kvtop() rather than address arithmetic in a couple of places. 1994-11-04 08:55:53 +00:00
mycroft
1948fcb3fa Add a new function config_scan(), which just calls a particular function
with each plausibly cfdata, ignoring the priority mechanism completely.
1994-11-04 06:40:11 +00:00
mycroft
2e8ae560f6 Commit incest with the config system for this one specific case. 1994-11-04 03:57:32 +00:00
mycroft
fa769b0e97 Set ia_irq correctly. 1994-11-04 02:55:32 +00:00
mycroft
7773b21b74 Correct an oversight. 1994-11-04 00:53:06 +00:00
mycroft
d4dd538296 Oops; forgot isacd. 1994-11-04 00:07:39 +00:00
mycroft
3fca7e771a New version using standard config_*() functions. 1994-11-03 23:53:19 +00:00
mycroft
ebbdd6473b Update to match autoconfig code. 1994-11-03 23:26:03 +00:00
mycroft
19fc9d55c8 *intr() arg does not need to be void*. 1994-11-03 23:23:38 +00:00
mycroft
d0163400d1 Update to match autoconfig code. 1994-11-03 23:21:24 +00:00
mycroft
54cc63645d Update to match autoconfig code. 1994-11-03 23:08:27 +00:00
mycroft
d23d1e83dc Use indirect config for subdevices, and add dkdrivers where missing. 1994-11-03 22:55:58 +00:00
mycroft
94cde915db Rename pciprobe() to pcimatch(), and move it to pci_machdep.c. 1994-11-03 22:27:16 +00:00
mycroft
e06bd72a85 Always use direct configuration. 1994-11-03 22:15:19 +00:00
mycroft
d8561ad477 Oops; update scsibusmatch() arg list. 1994-11-03 22:09:00 +00:00
mycroft
ef0c18e1cf Always use direct configuration for SCSI devices. 1994-11-03 22:05:08 +00:00
mycroft
54608f7ea0 Remove a couple of i386-specific hacks, and make a couple of others #ifdef
CONFIG_INDIRECT instead.
1994-11-03 20:24:21 +00:00
mycroft
283745574f Commit this, though it really does need work. 1994-11-03 16:55:57 +00:00
mycroft
1c76bf7aa1 Add a nullcnpollc(), for people who don't want to deal. 1994-10-30 22:16:37 +00:00
cgd
6ac2bbfc35 be more careful with types, also pull in headers where necessary. 1994-10-30 21:43:03 +00:00
mycroft
9769a6a6f7 Various:
* Forget all cached info when opening a new disc.
* If the disc is removed, flush the buffer queue rather than stalling it.
* Set the default label after getting the disc size, and fill in the info
for RAW_PART also.
* Change another use of the unit number to a softc pointer.
* Use a dkdevice to hold the label and open partition masks.
* Force the partition offset to 0 for RAW_PART, regardless of the label.
* Nuke MCDPHYS() and MCDREADRAW; they had a silly bug that caused the code
to not work, and they aren't useful anyway.
Some other minor cleanup.
1994-10-28 23:39:59 +00:00
cgd
022ee8f7fe new RCS ID format. 1994-10-27 04:14:23 +00:00
andrew
5a13863a4b Default to decent performance. 1994-10-27 02:04:18 +00:00
andrew
fc67924047 Merge changes from Wolfgang Stanglmeier's 941012 release. 1994-10-27 02:02:00 +00:00
cgd
a63beafc2b new RCS ID format. 1994-10-26 21:08:38 +00:00
mycroft
556a119342 Implement *cnpollc(). 1994-10-26 18:06:30 +00:00
mycroft
511d2732a3 Implement cnpollc(). 1994-10-26 17:56:53 +00:00
cgd
d62187c043 new RCS ID format. 1994-10-26 08:01:33 +00:00
mycroft
260ddbefb7 Rearrange ed_init() slightly, to better correspond to the National manual.
Optimize ed_rint() slightly in the case of multiple packets.  (Avoid an outb
and an inb for each packet).
1994-10-23 23:24:56 +00:00
mycroft
603fe7b5a6 Slight optimization. 1994-10-23 21:38:00 +00:00
mycroft
0114159848 Fix the packet length correction for buggy chips so that it actually works,
and always use it (otherwise short packets could still be corrupted).  Also
produce a diagnostic message if DIAGNOSTIC, since it *is* a hardware bug.
Add an ED_PAGE_SHIFT constant, and use it, to avoid GCC doing horrendous
things with divides and multiplies.
1994-10-23 21:22:13 +00:00
mycroft
28cbceeec7 Make this more likely to work. 1994-10-23 19:24:01 +00:00
mycroft
e5d974c51f First cut at making user-level SCSI commands work. This is untested.
Partly from John Brezak.
1994-10-20 20:31:23 +00:00
mycroft
3e30a415ae Be careful not to stack multiple timeouts. 1994-10-20 19:22:01 +00:00
mycroft
4d072c5435 Remove the local timeout mechanism, and just use explicit timeout()/untimeout()
calls.
1994-10-20 18:37:45 +00:00
mycroft
c11a06cbc2 Always set d_secsize to 512 for now. 1994-10-20 17:03:09 +00:00
mycroft
b8ab5f65d1 Back out change to print geometry from label at boot; can't do this reliably. 1994-10-20 16:54:44 +00:00
mycroft
0862d07daf Don't switch to single-sector mode just because we got a corrected error. 1994-10-20 16:36:21 +00:00
mycroft
d4153fff4d Rearrange wdcstart() in a more logical fashion, and eliminate many redundant
calculations.  Also, speed up bad block searching a little.
1994-10-20 16:19:08 +00:00
mycroft
7d391c250d Fix minor omission. 1994-10-20 14:10:18 +00:00
mycroft
cd66683989 openpart -> openmask 1994-10-20 14:08:07 +00:00
mycroft
bb12b9c8a2 Trivial stylistic changes. 1994-10-20 14:05:08 +00:00
mycroft
caaeda044b Similar changes to sd.c. 1994-10-20 14:03:38 +00:00
mycroft
b1568d887e Use the block size in the label in most cases. 1994-10-20 13:50:38 +00:00
mycroft
cae71ba91d Various changes:
* Add a dkdevice; move sc_*openpart, sc_label, and sc_cpulabel into it.
* Turn sc_wlabel into a flag, and don't set it automatically in DIOCWLABEL.
* If there is no label, disallow all I/O except to the raw partition.
* Don't allow I/O to `unused' partitions.
* Beginnings of support for block sizes other than 512 bytes.
Other minor changes.
1994-10-20 13:44:46 +00:00
mycroft
d5b3572f5c Various changes:
* Get rid of unused `partflags'.
* Use dk_openpart, and remove `openparts'.  Also, allow an open on both
the block and characters devices at the same time.
* If there was a label, print the geometry from the label at boot time.
* Turn `wlabel' into a flag, and *don't* set it automatically in
DIOCWLABEL; disklabel(8) does that.
Other minor changes.
1994-10-20 13:33:36 +00:00
mycroft
8ae8b4ab29 Bug fixes from Rafal Boni:
* Set promiscuous mode flag before configuring card, so it actually works.
* Handle failed TDR commands correctly.
* Remove some apparently defunct and bogus code.
(This driver needs more work.)
1994-10-18 13:40:30 +00:00
cgd
320359f8e2 change, requested by Jarle Greipsland 1994-10-17 00:08:29 +00:00
cgd
49c34d3337 move arch dependence to archs. clean up a bit. deal with weird MAXPARTITONS. 1994-10-14 18:26:22 +00:00
mycroft
6f5794ecba Fix bugs in dealing with odd-length mbufs in ed_pio_write_mbufs(). From
John Hood.
1994-10-14 13:05:13 +00:00
mycroft
7c01f7ce51 Changes from DG to deal with some old chips that corrupt the packet length. 1994-10-12 13:42:00 +00:00
mycroft
4252ca6644 Correct multicast filter calculation. 1994-10-09 21:19:04 +00:00
mycroft
236f105ccd Remove unneeded #includes. 1994-10-09 15:06:23 +00:00
ragge
5a58654e8a Fixed bugs according to old memory system. 1994-10-08 15:46:15 +00:00
mycroft
b90985ee3d Don't poll the BUSY bit until the SDH register is set. 1994-10-07 11:34:52 +00:00
mycroft
1eaa03e7dc Fix initial allocation of dev array, and simplify the code
slightly.
1994-10-07 09:08:29 +00:00
mycroft
86e7908a72 Make some comments more clear. 1994-10-01 07:19:32 +00:00
mycroft
f7b0f89811 Various minor changes to sync better with DG's version. 1994-10-01 07:13:32 +00:00
mycroft
6ddbe860c2 Update from Wolfgang Stanglemeier. 1994-10-01 06:27:56 +00:00
mycroft
0e28696023 Add IO_PPI. 1994-10-01 03:52:46 +00:00
mycroft
e32c213d35 Add IO_PMP[12] and IO_PMPSIZE. 1994-10-01 03:48:49 +00:00
mycroft
b7cc64e049 Check the SB Pro IRQ and DRQ correctly. From Jason Thorpe. 1994-09-16 23:48:22 +00:00
mycroft
c7003d37d3 Only reset FIFO if changing baud rate. From John Kohl (slightly edited). 1994-09-16 02:50:39 +00:00
mycroft
8dd2c63b08 Turn off the delay debugging messages again. 1994-09-12 20:29:08 +00:00
mycroft
584de55692 Missed an iobase that should be u_short. 1994-09-05 00:21:40 +00:00
deraadt
5aa2f1e6bb remove an un-aligned access 1994-08-30 17:01:57 +00:00
mycroft
a13c1b15cc Minor. 1994-08-26 12:43:17 +00:00
deraadt
de20d2cf67 Re-enable EISA reset code -- definately needed now. do RX_DISCARD_TOP_PACK
before leaving splhigh(), to give incoming packets a better chance.
1994-08-26 12:11:44 +00:00
deraadt
6c2b49032b fix debugging stuff, from dean 1994-08-25 20:18:25 +00:00
cgd
f32f66a23b fix (bogus) default ioctl return. 1994-08-24 16:49:16 +00:00
mycroft
5e4a51278b Set the FIFO threshold based on the receive speed, per Mark Weaver. 1994-08-24 07:25:18 +00:00
mycroft
c4eac0f370 Some cleanup, checked by Dean. 1994-08-23 23:40:55 +00:00
mycroft
8ac5e10c5d Various code cleanup. 1994-08-23 19:30:12 +00:00
deraadt
666f228bab add `eg' driver for the 3c505 by <dean@fsa.ca> 1994-08-23 17:59:33 +00:00
mycroft
996b2b5c54 Disable EISA reset, for now. 1994-08-22 21:53:23 +00:00
mycroft
71c5da7bfb Fix typo in WDCS_BITS. 1994-08-22 21:43:35 +00:00
mycroft
8b8390a4bb Look for MDMBUF in cflag, not lflag. 1994-08-21 15:04:37 +00:00
deraadt
256353ef62 multicast 1994-08-17 06:04:49 +00:00
mycroft
5f27568164 Eliminate struct pte and struct pde. 1994-08-15 14:46:45 +00:00
mycroft
36975ff354 Don't use altsts. Sigh. 1994-08-15 08:22:20 +00:00
mycroft
a618f9d915 Slight optimization, and don't go bonkers if one of the sub-devices is not
configured.
1994-08-14 14:13:25 +00:00
mycroft
a570fcd929 Re-enable EISA reset. 1994-08-14 09:43:59 +00:00
mycroft
cd2f7cc8a0 Clean up a little. 1994-08-14 09:24:55 +00:00
mycroft
06476a4e53 ccdevsw --> cdevsw 1994-08-14 07:41:08 +00:00
deraadt
692c724215 un-aligned access is not cool on some processors 1994-08-12 08:57:18 +00:00
mycroft
da79c879cd On probe or open, retry the READ CAPACITY once if the drive reports NOT READY. 1994-08-11 23:51:26 +00:00
mycroft
3c3258eb6d Make this work. 1994-08-11 04:54:13 +00:00
mycroft
55b11feb0a Update some comments. 1994-08-10 04:37:52 +00:00
mycroft
8dbfcf9e2e Add NCR 53c8XX driver, originally from Wolfgang Stanglmeier. 1994-08-09 22:20:44 +00:00
mycroft
3e685aec5c Change ST_Q_NEEDS_PAGE_0 to something more generic. 1994-08-09 18:50:17 +00:00
mycroft
6df721be97 Add PCI autoconfiguration support. 1994-08-09 00:47:46 +00:00
mycroft
061c42c22d Minor update. 1994-08-08 07:09:31 +00:00
mycroft
59de58a39b Count up the silo overflows and only log a warning at most once per minute. 1994-08-07 11:27:51 +00:00
mycroft
9c8afcf191 Avoid using DFIFOHF, which doesn't exist on 6260 chips. Turn off
AIC_USE_DWORDS by default.
1994-08-07 10:51:40 +00:00
mycroft
b0db502d9c Remove diagnostic. 1994-08-07 10:49:06 +00:00
mycroft
d9a996a92e Add multiplexer for RT 4-port serial cards. 1994-08-07 10:45:53 +00:00
mycroft
b6e9bf14c8 Simplify the DEPCA memory test, and fix a problem with using the alternate
PROM address.
1994-08-07 00:56:04 +00:00
deraadt
ebd23fe5e0 cleanup 1994-08-06 23:19:39 +00:00
mycroft
558c00c001 Fix spelling of `STEREO'. 1994-08-05 22:56:19 +00:00
deraadt
cefefb25ca cleanup, working 32 bit IO on the 3c579, and memory alignment of insl/insw
for better performance.
1994-08-05 21:16:33 +00:00