Warner Losh
a163d034fa
Back out M_* changes, per decision of the TRB.
...
Approved by: trb
2003-02-19 05:47:46 +00:00
Alfred Perlstein
44956c9863
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
...
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
2003-01-21 08:56:16 +00:00
Marcel Moolenaar
da5e9a5bd6
MFp4: Add support for memory mapped UARTs, but don't add any devices
...
yet that depend on it because sio(4) needs support for it before it
can be used. There's no reason why zs(4) couldn't attach to puc(4)
in the (near?) future (in principle), so don't make memory mapped I/O
support in sio(4) a precondition for this change.
2003-01-18 02:54:16 +00:00
Jens Schweikhardt
d64ada501a
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
...
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
Sam Leffler
28788ed563
fix build (make LINT)
2002-12-30 19:45:30 +00:00
Maxim Sobolev
638d2f4fe8
Add support for IC Book Labs Dreadnought x16 Lite.
...
Approved by: re
2002-12-28 15:45:38 +00:00
Poul-Henning Kamp
6cfbfac6d4
Add "missing scratch-pad register" to the first of the two ports
...
on the Argosy SP-320 dual-port async PCcard.
An amazing piece of hardware seen from an ISO9000 point of view.
2002-09-27 22:02:46 +00:00
Poul-Henning Kamp
32bc35fdb6
Add a field so we can specify flags per port to the underlying device driver.
2002-09-27 22:01:32 +00:00
Poul-Henning Kamp
1f02c343e8
Don't let children attach fast interrupts if the parent interrupt is normal.
...
Submitted by: bde
2002-09-04 18:50:40 +00:00
Poul-Henning Kamp
d3c10e33e6
Bring back the PUC_FASTINTR option, and implement it correctly so that
...
child devices also know if they are fast or normal.
Requested by: bde
2002-09-04 15:29:04 +00:00
Poul-Henning Kamp
b4dde36292
Remove a debug printf.
...
Correctly identify the ARGOSY SP320 dual port serial PCMCIA card.
2002-09-03 11:31:34 +00:00
Poul-Henning Kamp
b5518fb0cf
Fix interrupt registration:
...
PUC devices live on pccard or pci so INTR_FAST is never really an option.
Don't try to register the interrupt as fast and don't allow the children
to do so either.
2002-09-03 11:22:13 +00:00
Poul-Henning Kamp
ed4208e931
Style: fix a function whitespace stuff-up. Remove a debugging printf.
2002-09-03 11:19:44 +00:00
Poul-Henning Kamp
c91680190a
Style: move a global variable up to the top of the file.
2002-09-03 11:18:35 +00:00
Juli Mallett
237d2dda36
Stylistic fixes for the inclusion of the opt_puc.h header, so it comes from the
...
right places, and so it's sorted consistently with how all the other N-hundreds
of files ding this do it.
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
2002-09-01 01:59:38 +00:00
Poul-Henning Kamp
1e89655a31
More cleaning up and unhacking:
...
Don't expect all RIDs to be PCI rids. The previous code made at
least 1 mistake, even for PCI.
Give the card definitions a chance to specify a init function.
Use this instead of the gross superio hack.
Move the win877 init function to puc_pci.c where it belongs.
RIDs can actually be zero, don't set badmuxed if so.
Set a less incorrect end for the construct SYS_RES_IOPORT entries,
I guess both sio and lpt happen to use 8 IO ports, but that shouldn't
really be hardcoded this way.
Fixup puc_pccard.c to match.
We're getting closer.
2002-08-31 20:29:46 +00:00
Poul-Henning Kamp
e6ccea0a25
Don't enable PUC_DEBUG by accident
2002-08-31 18:42:31 +00:00
Poul-Henning Kamp
32f606d105
Split the puc driver in pci specific and generic parts.
...
Add a pccard frontend for it as well.
The PCcard stuff does not work yet because there is still some PCImagic
left in puc.c
2002-08-31 18:38:43 +00:00
John Hay
799e9b2414
Add an entry for Avlab's low profile 4 serial port card.
...
PR: 41146
Submitted by: Shinsuke Matsui <smatsui@internet-inc.co.jp>
Obtained from: NetBSD
2002-08-22 10:40:00 +00:00
John Hay
76353f6823
Add an entry for VScom PCI-200L 2 port serial card.
...
PR: 41142
Submitted by: Shinsuke Matsui <smatsui@internet-inc.co.jp>
Obtained from: OpenBSD
2002-08-22 10:37:55 +00:00
Warner Losh
4e64e27753
cardbus attachment.
2002-07-21 04:23:40 +00:00
David E. O'Brien
a27ffb412a
Add support for Comtrol RocketPort 550 PCi models: 4 RJ45, 4 Quadcable,
...
8 RJ11, 8 Octacable, and 8 (used with RocketPort I/F box).
Note: untested due to lack of hardware
2002-06-18 03:05:10 +00:00
David E. O'Brien
2569e3871c
Support the Comtrol RocketPort 550 PCi 16 (used with RocketPort I/F box).
...
Sponsored by: Feral Software
2002-06-18 02:39:12 +00:00
John Hay
de0d2cad31
Add another chip id for the new LAVA 4-port serial card.
...
PR: 37333
Submitted by: Ari Suutari <ari.suutari@syncrontech.com>
MFC after: 4 days
2002-04-24 18:55:50 +00:00
John Hay
aaeedfc626
Ignore the multifunction bit in the PCIR_HEADERTYPE.
...
PR: 37333
Submitted by: Ari Suutari <ari.suutari@syncrontech.com>
MFC after: 4 days
2002-04-24 18:53:43 +00:00
John Hay
a4c6b91603
Add an entry for "PCCOM dual port RS232/422/485".
...
Submitted by: Daniel O'Connor <doconnor@gsoft.com.au>
MFC after: 1 week
2002-04-01 13:33:43 +00:00
Murray Stokely
07bd43d600
Add an entry for Decision Computer Inc, PCCOM 4-port serial cards.
...
PR: kern/36302
Submitted by: Thomas Zenker <thz@Lennartz-electronic.de>
MFC after: 1 week
2002-03-28 11:17:20 +00:00
Alfred Perlstein
e51a25f850
Remove __P.
2002-03-20 02:08:01 +00:00
John Hay
db78e578e3
Remove the #if __FreeBSD_version glue now that the puc driver is part of
...
-stable.
2002-03-08 17:41:22 +00:00
John Hay
b72c70af4c
Add the "Avlab Technology, PCI IO 2S" card.
...
Submitted by: Terry Glanfield <Terry.Glanfield@program-products.co.uk>
2002-03-06 17:37:27 +00:00
Yoshihiro Takahashi
5aa967d922
Release allocated memory and bus_space_handle on an error.
...
Reviewed by: jhay
2002-02-19 14:58:11 +00:00
Yoshihiro Takahashi
9f67ccb7e5
Move the bus_space_subregion function from the puc driver to the bus_space
...
sutff.
Reviewed by: jhay
2002-02-17 09:41:23 +00:00
John Hay
9c564b6c92
Add the puc (PCI "Universal" Communications) driver. The idea and some of
...
the structure definitions come from NetBSD to make it easier to share card
definitions. The driver only acts as a shim between the pci bus and the
sio driver. Later pci parallel ports could also be supported through this
driver. Support for most single and multiport pci serial cards should be
as simple as adding its definition to pucdata.c
Tested with the following pci cards:
Moxa Industio CP-114, 4 port RS-232,RS-422/485
Syba Tech Ltd. PCI-4S2P-550-ECP, 4 port RS-232 + 2 parallel ports
Netmos NM9835 PCI-2S-550, 2 port RS-232
2002-02-16 15:12:14 +00:00