freebsd-dev/sys
jon b8d4cd34d2 This fixes several problems with CIS as suggested by Justin Gibbs:
4) The cardbus CIS code treats the CIS_PTR as a mapping register if
   it is mentioned in the CIS.  I don't have a spec handy to understand
   why the CIS_PTR is mentioned in the CIS, but allocating a memory range
   for it is certainly bogus.  My patch ignores bar #6 to prevent the
   mapping.
   [The pccard spec says that BAR 0 and 7 (-1 and 6 in thic case since we
    did a minus one) is "reserved".  The off by 1 error has been fixed.
    also bar=5 is invalid for IO maps, so we check it.]

5) The CIS code allocated duplicate resources to those already found
   by cardbus_add_resources().  The fix is to pass in the bar computed
   from the CIS instead of the particular resource ID for that bar,
   so bus_generic_alloc_resource succeeds in finding the old resource.
   [fixed, also removed superfluous (and incorrect) writing back to the
    PCI config space.]

7) The CIS code seems to use the wrong bit to determine rather a particular
   register mapping is for I/O or memory space.  From looking at the
   two cards I have, it seems TPL_BAR_REG_AS should be 0x10 instead
   of 0x08.  Otherwise, all registers that should be I/O mapped gain
   a second mapping in memory space.
   [Oops, the spec does say 0x10..., fixed]

Submitted by: Justin Gibbs
2000-11-29 19:38:25 +00:00
..
alpha Add 'mpsafe' parameter to callout_init() in MD bits. 2000-11-26 13:52:17 +00:00
amd64 Don't wait forever for CPUs to stop or restart. Instead, give up after a 2000-11-28 23:52:36 +00:00
boot `cdboot' is broken as it cannot load a kernel. 2000-11-27 02:15:13 +00:00
cam Add special quirk for this ancient Viper drive. This is all creeping 2000-11-08 18:37:12 +00:00
coda Give vop_mmap an untimely death. The opportunity to give it a timely 2000-11-01 17:57:24 +00:00
compat Use callout_reset instead of timeout(9). Most callouts are statically 2000-11-27 22:52:31 +00:00
compile
conf A bunch of newcard/cardbus changes that's been sitting in my tree for a while: 2000-11-28 00:05:20 +00:00
contrib Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
crypto This commit was generated by cvs2svn to compensate for changes in r67957, 2000-10-30 11:03:32 +00:00
ddb Previous commit changing SYSCTL_HANDLER_ARGS violated KNF. 2000-07-04 11:25:35 +00:00
dev This fixes several problems with CIS as suggested by Justin Gibbs: 2000-11-29 19:38:25 +00:00
fs Update to reflect the disappearance of getsock(). 2000-11-25 07:16:06 +00:00
geom Avoid the modules madness I inadvertently introduced by making the 2000-09-02 19:17:34 +00:00
gnu Quick fix for not writing group descriptor group, inode bitmaps or 2000-11-10 14:54:15 +00:00
i4b Make log(-1, ...) do what addlog(...) did. 2000-11-26 19:34:06 +00:00
i386 Don't wait forever for CPUs to stop or restart. Instead, give up after a 2000-11-28 23:52:36 +00:00
ia64 Add 'mpsafe' parameter to callout_init() in MD bits. 2000-11-26 13:52:17 +00:00
isa Reduce code duplication by using the GET_RESOURCE_LIST bus method and related 2000-11-28 07:12:12 +00:00
isofs/cd9660 Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing 2000-10-29 14:54:55 +00:00
kern Use an atomic operation with an appropriate memory barrier when releasing 2000-11-29 18:41:19 +00:00
libkern add threadsafe version of inet_ntoa (inet_ntoa_r takes a buffer to fill) 2000-11-25 03:14:31 +00:00
miscfs Update to reflect the disappearance of getsock(). 2000-11-25 07:16:06 +00:00
modules Remove the ibcs2(8) shell script. 2000-11-29 10:46:14 +00:00
msdosfs Weaken a bogus dependency on <sys/proc.h> in <sys/buf.h> by #ifdef'ing 2000-10-29 14:54:55 +00:00
net Unbreak world; #include <sys/mutex.h> instead of <machine/mutex.h> 2000-11-26 21:47:01 +00:00
netatalk Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
netatm Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
netgraph Fix another callout_init() that I missed. 2000-11-26 21:59:30 +00:00
netinet Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
netinet6 Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
netipx Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
netkey Revert previous commit after discussion with phk. 2000-10-30 09:13:46 +00:00
netnatm Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
netncp Make malloc use M_ZERO in some more locations. 2000-10-29 16:14:28 +00:00
netns Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
nfs Simplify the tprintf() API. 2000-11-26 20:35:21 +00:00
nfsclient Simplify the tprintf() API. 2000-11-26 20:35:21 +00:00
nfsserver Simplify the tprintf() API. 2000-11-26 20:35:21 +00:00
ntfs Use vop_defaultop() instead of ntfs_bypass(). 2000-11-18 02:47:12 +00:00
nwfs v_interlock is a mutex now, not simple lock. 2000-11-04 02:42:11 +00:00
pc98 Merged from sys/i386/i386/userconfig.c revision 1.185. 2000-11-29 12:31:13 +00:00
pccard fix type check in pccard_beep_select 2000-11-01 00:37:34 +00:00
pci Reduce code duplication by using the GET_RESOURCE_LIST bus method and related 2000-11-28 07:12:12 +00:00
posix4 Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
powerpc Convert various calls to splhigh() to disable_intr() since splhigh() is 2000-11-19 12:28:42 +00:00
rpc
svr4 This patchset fixes a large number of file descriptor race conditions. 2000-11-18 21:01:04 +00:00
sys Kernel support for erase2 character. 2000-11-28 20:03:23 +00:00
tools remove crufty exec stuff, perl is in the base system 2000-06-27 19:09:55 +00:00
ufs More aggressively rate limit the growth of soft dependency structures 2000-11-20 06:22:39 +00:00
vm Protect the following with a lockmgr lock: 2000-11-22 07:42:04 +00:00
Makefile I should know better than to touch this without testing a 'make release' 2000-08-24 18:53:09 +00:00