mycroft
103c7d360d
Oops; forgot to GC the last mbuf allocated when out of clusters.
1997-04-28 17:03:58 +00:00
mjacob
b3192632db
On alpha, sizeof (long) != sizeof (int) and sizeof (int) != sizeof (ptr_t)
1997-04-28 15:52:44 +00:00
mjacob
ac6fbba3ac
On alpha size_t is not an int, ergo last argument to dma setup glue
...
function can't be a pointer to an int.
1997-04-28 15:43:47 +00:00
pk
94eaf1bb04
Implement target selection using DMA.
...
To allow a period of testing the variable `ncr53c9x_dmaselect' is used to
enable this feature (default is 0, i.e. the old behaviour).
1997-04-27 22:08:51 +00:00
jonathan
dbf4f7b71f
* Tidy PHY [sic] selection code in epsetmedia().
...
* epinit() had both explicit xcvr selection for 3c589 and a call
to epsetmedia(). The first is redundant; delete it, and EP_COAX_DEFAULT.
* Update comments to reflect 3c589 and 3c509B fixes. Fix typos.
1997-04-27 21:09:56 +00:00
veego
1b80d8dd97
Add other isapnp id's for the 3c509.
1997-04-27 09:46:50 +00:00
veego
f05fad5ad9
- Add a new variable to epaddcard to call epconfig with the right chipset.
...
- Don't attach a 3c509 in PnP mode.
1997-04-27 09:44:45 +00:00
veego
bf37fc50d0
Rename the PROD_ID to PROD_ID_3C509 to make it possible to add other
...
product id's, e.g. for the 3c515.
1997-04-27 09:42:34 +00:00
veego
a2e1f15ba7
- Replace the check for EP_BUS_PCMCIA in epsetmedia with a check for
...
EP_CHIPSET_3C509 and change it a bit so it works now with the 3c509
and still works with the 3c589.
- KNF
1997-04-27 09:38:50 +00:00
augustss
81a10d7725
Don't require that a device is open for writing to perform a raw
...
SCSI command that just reads.
1997-04-26 22:24:46 +00:00
jonathan
593e5dd8e1
Pad of first mbuf in chain, even if it's a cluster (pr 3536).
...
Garbage-collect padding of header mbuf.
1997-04-25 20:14:37 +00:00
explorer
60a6c8d34b
Add isapnp attachment for com driver
1997-04-25 15:26:11 +00:00
mycroft
91a808523c
Fix typo in previous.
1997-04-24 08:05:13 +00:00
mycroft
b65e62c6c4
If we fail to allocate a cluster to hold a large packet, simply
...
drop it rather than using a chain of tiny mbufs.
Do not force the initial part of a packet into a separate mbuf.
1997-04-24 02:36:46 +00:00
mycroft
68258fba20
Do not force the initial part of a packet into a separate mbuf.
1997-04-24 02:25:36 +00:00
mycroft
581399fc4c
If we fail to allocate a cluster to hold a large packet, simply
...
drop it rather than using a chain of tiny mbufs.
1997-04-24 02:24:04 +00:00
mycroft
030c7010ee
If we fail to allocate a cluster to hold a large packet, simply
...
drop it rather than using a chain of tiny mbufs.
1997-04-24 02:04:33 +00:00
mycroft
db2332eb26
Another silly CD-ROM drive...
1997-04-24 00:49:14 +00:00
cjs
9be8b65e23
Smaller, cleaner code for aligning struct ip on receipt.
1997-04-23 08:15:03 +00:00
cjs
5c8bf48817
Align struct ip on incoming packets for all types of cards, not just
...
32-bit ones.
1997-04-22 21:19:11 +00:00
thorpej
6102bc8ec2
And Yet Another Broken IBM disk (the 664 this time), once again
...
reported by Hubert Feyrer <feyrer@grizu.fh-regensburg.de>.
1997-04-20 01:30:30 +00:00
thorpej
f9bc642a6d
Add Yet Another Broken IBM disk to the SDEV_AUTOSAVE list. This one
...
doesn't report a vendor string (yuck)!. Problem reported by
Hubert Feyrer <feyrer@grizu.fh-regensburg.de>.
1997-04-20 00:55:05 +00:00
pk
f2c53e4c3d
Two more quirks:
...
Python 28454-XXX tape drive: NOLUNS
1588-15MBSUN0669 disk: AUTOSAVE
1997-04-19 21:32:37 +00:00
pk
231a4bfb1f
Remove bogus pointer cast.
...
Accept FIONBIO ioctls.
1997-04-19 21:25:43 +00:00
cgd
5cfcabc2fe
compile when __BROKEN_INDIRECT_CONFIG isn't defined.
1997-04-18 00:50:33 +00:00
mikel
7aa8facf27
end line after printing WIDE SCSI status; fixes PR kern 3505.
1997-04-17 07:21:14 +00:00
thorpej
48b6d2a6f3
Update for no __BROKEN_INDIRECT_CONFIG.
1997-04-16 23:41:53 +00:00
thorpej
8338396bf4
- Update for no __BROKEN_INDIRECT_CONFIG.
...
- Fix BPF hooks.
1997-04-16 23:41:19 +00:00
thorpej
2747d6c890
- Update for no __BROKEN_INDIRECT_CONFIG.
...
- Determine and remember if we are a floppy.
- Workaround for what is apparently a firmware bug - ignore the sector
size returned by the device. On my Firepower's floppy, block-size
is the same as max-transfer, which causes Lossage.
- Don't read the disklabel on a floppy; do what the ISA floppy driver
does, which is assign the entire disk to each "partition", although
we do not deal with the density stuff.
- FIREPOWERBUGS -> FIRMWORKSBUGS
- Some general cleanup.
1997-04-16 23:39:28 +00:00
thorpej
991fede269
Update for no __BROKEN_INDIRECT_CONFIG.
1997-04-16 23:32:04 +00:00
cgd
78b378b2bc
create pci_mapreg_info() which simply gets mapping register information.
...
It's used by pci_mapreg_map() and can be used directly by drivers
with special needs (e.g. those being attached as console devices).
1997-04-13 22:05:10 +00:00
cgd
36949596f0
rename pci_map_register to pci_mapreg_map. The latter name is more
...
descriptive, and allows for a sane name for a function which just digs
the info out of the mapping register but doesn't do the mapping.
1997-04-13 20:14:20 +00:00
cgd
dcd9b58489
don't bother keeping around the i/o tag. It's useless by itself, and
...
without other significant changes to this driver wouldn't be particularly
useful to keep around permanently anyway.
1997-04-13 20:02:11 +00:00
cgd
04e7505aaa
clean up an autoconfiguration printf. Much more should be done
1997-04-13 20:00:29 +00:00
cgd
4c2cff7209
use pci_map_register(). map both mem and I/O spaces, preferring mem space
...
by default if it's usable, but falling back to I/O space if mem isn't usable.
If NCR_IOMAPPED is defined (default on the x86), prefer I/O space
then fall back to mem. Also, clean up the various memory consistency checks
so that they can deal with run-time determination of whether or not the
device is to be memory- or I/O-mapped.
1997-04-13 19:58:17 +00:00
cgd
32836b0710
use pci_map_register(). map both mem and I/O spaces, preferring mem space
...
by default if it's usable, but falling back to I/O space if mem isn't usable.
If TULIP_IOMAPPED is defined (default on the x86), prefer I/O space
then fall back to mem.
1997-04-13 19:56:14 +00:00
cgd
8593458137
use pci_map_register(). Also, almost a complete rewrite/cleanup of this
...
code. (It still needs more!)
1997-04-13 19:55:09 +00:00
cgd
41a0ca7403
clean up space/tag comments
1997-04-13 19:48:50 +00:00
cgd
cf2d73f749
use pci_map_register(). map both mem and I/O spaces, preferring mem
...
space if it's usable, but falling back to I/O space if mem isn't usable.
1997-04-13 19:48:16 +00:00
cgd
02ca6f929d
use pci_map_register().
1997-04-13 19:47:06 +00:00
cgd
2eae910210
implement pci_map_register(), which gets information about a device's
...
mapping register, maps it, and returns all of the relevant information.
deprecate use of pci_{io,mem}_find(), but leave them around (for a while)
for backward compatibility with third-party drivers.
1997-04-13 19:46:01 +00:00
cgd
ade89d0da0
add a missing newline
1997-04-11 20:28:08 +00:00
cgd
db11467340
clean up some constants ([A-F]->[a-f] in hex constants
1997-04-11 05:24:40 +00:00
thorpej
c0c810cbe0
Initialize the scsi_link before calling bha_init(), since that is how
...
we check for "wide controller" now.
1997-04-11 01:34:25 +00:00
cgd
cc93b2c4eb
pass memory- and i/o-enabled flags down via the PCI bus and device attach
...
arguments, so that a device can tell if its memory and I/O spaces are
enabled. The flags are cleared, depending on the contents of devices CSR
registers, in the machine-independent PCI bus code.
1997-04-10 23:12:16 +00:00
mikel
cff564f651
fix off-by-one error in fixed I/O resource interpreter
...
fix address alignment errors in memory resource interpreter
clean up debug output a bit
1997-04-10 07:02:53 +00:00
mikel
27d98ef0db
add support for AD181[56] SBPro emulation
1997-04-10 06:33:16 +00:00
cgd
db0f072019
clean these up (mostly rename bus_space_{tag,handle}_t variables) so that
...
this code makes equal sense for memory and I/O space, prefer to map
the PCI front end via memory space (conditionalized on a patchable kernel
variable), and do a bit of other random NetBSD-specific cleanup. (These
changes were sent to Justin Gibbs on March 28.)
1997-04-10 02:48:38 +00:00
mycroft
f2746e9620
Update for new com driver.
1997-04-09 16:44:21 +00:00
jonathan
5725025bdc
typo in cfattach.
1997-04-09 02:10:48 +00:00