freebsd-dev/sys
Marcel Moolenaar 875f70dba4 Revert the introduction of iobase in struct uart_bas. Both the SAB82532
and the Z8530 drivers used the I/O address as a quick and dirty way to
determine which channel they operated on, but formalizing this by
introducing iobase is not a solution. How for example would a driver
know which channel it controls for a multi-channel UART that only has a
single I/O range?

Instead, add an explicit field, called chan, to struct uart_bas that
holds the channel within a device, or 0 otherwise. The chan field is
initialized both by the system device probing (i.e. a system console)
or it is passed down to uart_bus_probe() by any of the bus front-ends.
As such, it impacts all platforms and bus drivers and makes it a rather
large commit.

Remove the use of iobase in uart_cpu_eqres() for pc98. It is expected
that platforms have the capability to compare tag and handle pairs for
equality; as to determine whether two pairs access the same device or
not. The use of iobase for pc98 makes it impossible to formalize this
and turn it into a real newbus function later. This commit reverts
uart_cpu_eqres() for pc98 to an unimplemented function. It has to be
reimplemented using only the tag and handle fields in struct uart_bas.

Rewrite the SAB82532 and Z8530 drivers to use the chan field in struct
uart_bas. Remove the IS_CHANNEL_A and IS_CHANNEL_B macros. We don't
need to abstract anything anymore.

Discussed with: nyan
Tested on: i386, ia64, sparc64
2003-09-26 05:14:56 +00:00
..
alpha Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
amd64 MFi386 2003-09-26 04:12:41 +00:00
arm Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
boot Don't repeat selected defines from ns16550.h or sioreg.h. Just 2003-09-16 11:24:23 +00:00
cam Detach black hole device on AC_PATH_DEREGISTERED. 2003-09-25 05:02:19 +00:00
coda Move an overly verbose message under #ifdef CODA_VERBOSE. 2003-09-13 01:13:56 +00:00
compat Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
conf indicate PFIL_HOOKS is now required by IPFILTER; it used to automagically 2003-09-25 16:06:17 +00:00
contrib o remove extraneous include of <net/pfil.h> 2003-09-24 05:08:58 +00:00
crypto one more opossite conditiion. 2003-09-18 17:26:56 +00:00
ddb Label the uarea address as such in DDB's ps output 2003-08-30 19:06:57 +00:00
dev Revert the introduction of iobase in struct uart_bas. Both the SAB82532 2003-09-26 05:14:56 +00:00
fs - Remove interlock protection around VI_XLOCK. The interlock is not 2003-09-19 23:37:49 +00:00
geom Be more careful in dumpconf: softc may be NULL for departing devices. 2003-09-23 07:53:59 +00:00
gnu - Clean-up comments that refer to the use of B_LOCKED. 2003-08-28 00:56:39 +00:00
i4b Use PCIR_BAR(x) instead of PCIR_MAPS. 2003-09-02 17:30:40 +00:00
i386 - Eliminate the pte object. 2003-09-25 02:51:06 +00:00
ia64 Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
isa Per TRB vote: restore the aquire_timer0 and associated goo. This will 2003-09-24 15:33:33 +00:00
isofs/cd9660
kern Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
libkern
modules update to reflect PFIL_HOOKS api changes 2003-09-23 17:55:04 +00:00
net o update PFIL_HOOKS support to current API used by netbsd 2003-09-23 17:54:04 +00:00
net80211 Generalize the per-node RSSI data so drivers can do more interesting 2003-09-15 22:28:07 +00:00
netatalk More checking of M_PREPEND() return values: pass through link-layer 2003-08-29 19:27:09 +00:00
netatm
netgraph
netinet add /*CONSTCOND*/ to reduce diffs against latest KAME. 2003-09-25 13:40:06 +00:00
netinet6 o update PFIL_HOOKS support to current API used by netbsd 2003-09-23 17:54:04 +00:00
netipsec Locking and misc cleanups; most of which I've been running for >4 months: 2003-09-01 05:35:55 +00:00
netipx Fix a bunch of off-by-one errors in the range checking code. 2003-09-11 21:40:21 +00:00
netkey add /*CONSTCOND*/ to reduce diffs against latest KAME. 2003-09-25 13:40:06 +00:00
netnatm
netncp
netsmb Rewrite the code that uses the try/catch paradigm implemented by 2003-08-23 21:43:33 +00:00
nfs
nfsclient - Remove interlock protection around VI_XLOCK. The interlock is not 2003-09-19 23:37:49 +00:00
nfsserver
opencrypto
pc98 Implement the bus_space_map() function to allocate resources and initialize 2003-09-23 08:22:34 +00:00
pccard More debug under boot verbose. 2003-08-29 23:25:00 +00:00
pci Add missing file, it is sorely needed to make if_sk.c compile again. 2003-09-20 15:49:22 +00:00
posix4 sched_setscheduler: Return EINVAL when a invalid policy is specified, 2003-09-13 18:46:24 +00:00
powerpc Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
rpc
security Remove extra tabs indenting MAC library calls; they were there to 2003-08-29 02:43:57 +00:00
sparc64 Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
sys Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
tools
ufs - Several of the callers to getdirtybuf() were erroneously changed to pass 2003-09-03 04:08:15 +00:00
vm Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
Makefile