freebsd-skq/sys
wpaul 79a95fe15c In if_ndis.c:ndis_attach(), temporarily set the IFF_UP flag while
calling the haltfunc. If an interrupt is triggered by the init
or halt func, the IFF_UP flag must be set in order for us to be able
to service it.

In kern_ndis.c: implement a handler for NdisMSendResourcesAvailable()
(currently does nothing since we don't really need it).

In subr_ndis.c:
	- Correct ndis_init_string() and ndis_unicode_to_ansi(),
	  which were both horribly broken.
        - Implement NdisImmediateReadPciSlotInformation() and
	  NdisImmediateWritePciSlotInformation().
	- Implement NdisBufferLength().
	- Work around my first confirmed NDIS driver bug.
	  The SMC 9462 gigE driver (natsemi 83820-based copper)
	  incorrectly creates a spinlock in its DriverEntry()
	  routine and then destroys it in its MiniportHalt()
	  handler. This is wrong: spinlocks should be created
	  in MiniportInit(). In a Windows environment, this is
	  often not a problem because DriverEntry()/MiniportInit()
	  are called once when the system boots and MiniportHalt()
	  or the shutdown handler is called when the system halts.

With this stuff in place, this driver now seems to work:

ndis0: <SMC EZ Card 1000> port 0xe000-0xe0ff mem 0xda000000-0xda000fff irq 10 at device 9.0 on pci0
ndis0: assign PCI resources...
ndis_open_file("FLASH9.hex", 18446744073709551615)
ndis0: Ethernet address: 00:04:e2:0e:d3:f0
2004-01-03 13:20:30 +00:00
..
alpha Make sigaltstack as per-threaded, because per-process sigaltstack state 2004-01-03 02:02:26 +00:00
amd64 Make sigaltstack as per-threaded, because per-process sigaltstack state 2004-01-03 02:02:26 +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 - Add ':' as a separator between the OpenFirmware device space and 2003-12-21 12:38:25 +00:00
cam Move the ciss quirk to the right section, also update the comment 2003-12-08 06:29:38 +00:00
coda - Implement selwakeuppri() which allows raising the priority of a 2003-11-09 09:17:26 +00:00
compat In if_ndis.c:ndis_attach(), temporarily set the IFF_UP flag while 2004-01-03 13:20:30 +00:00
conf Backed out a small part of rev.1.15. -Winline now works better, so 2003-12-30 09:01:29 +00:00
contrib Changes to the import script to handle the compiler/debugger import. 2003-12-09 03:13:37 +00:00
crypto avoid module name conflict with opencrypto/rijndael.c. 2003-11-12 04:22:37 +00:00
ddb Reworked rev.1.14. Use the ELF symbol type again to summarily reject 2003-09-28 06:02:33 +00:00
dev In if_ndis.c:ndis_attach(), temporarily set the IFF_UP flag while 2004-01-03 13:20:30 +00:00
fs Pass ACL, extended attribute and MAC vnode ops down the vnode stack. 2004-01-03 00:36:46 +00:00
geom Prevent withering of the provider we're orphaning from happening until 2003-12-23 11:37:05 +00:00
gnu Fixed a reference to a nonexistent variable in previous commit. Renaming 2003-11-05 11:56:58 +00:00
i4b Based on an excellent suggestion from tanimura@ define I4BPRI and use it 2003-11-10 14:20:34 +00:00
i386 Make sigaltstack as per-threaded, because per-process sigaltstack state 2004-01-03 02:02:26 +00:00
ia64 Make sigaltstack as per-threaded, because per-process sigaltstack state 2004-01-03 02:02:26 +00:00
isa Significantly reduce the "jitter" that is typical for PS/2 mice 2003-12-11 11:28:11 +00:00
isofs/cd9660 DuH! 2003-10-18 14:10:28 +00:00
kern Make sigaltstack as per-threaded, because per-process sigaltstack state 2004-01-03 02:02:26 +00:00
libkern Make msdosfs long filenames matching case insensitive again. 2003-12-08 08:32:20 +00:00
modules Use double quotes instead of single quotes for echos to build options 2003-12-29 09:15:48 +00:00
net backout the switch to use a zone for vlan tags; this requires 2004-01-03 03:33:39 +00:00
net80211 Sync with netbsd: 2003-12-28 06:57:28 +00:00
netatalk Eliminate a duplicate free when deleting an interface address. This 2003-11-28 04:19:41 +00:00
netatm Introduce a MAC label reference in 'struct inpcb', which caches 2003-11-18 00:39:07 +00:00
netgraph o eliminate widespread on-stack mbuf use for bpf by introducing 2003-12-28 03:56:00 +00:00
netinet Document the net.inet.ip.subnets_are_local sysctl. 2003-12-30 16:05:03 +00:00
netinet6 When calculating the sequence number to use in an ip6fw reset, remember to 2003-12-25 23:39:44 +00:00
netipsec Push m_apply() and m_getptr() up into the colleciton of standard mbuf 2003-12-15 21:49:41 +00:00
netipx Introduce a MAC label reference in 'struct inpcb', which caches 2003-11-18 00:39:07 +00:00
netkey don't touch after free. 2003-12-10 05:01:41 +00:00
netnatm Introduce a MAC label reference in 'struct inpcb', which caches 2003-11-18 00:39:07 +00:00
netncp The present defaults for the open and close for device drivers which 2003-09-27 12:01:01 +00:00
netsmb Add support for SMB request signing, which prevents "man in the middle" 2004-01-02 22:38:42 +00:00
nfs University of Michigan's Citi NFSv4 kernel client code. 2003-11-14 20:54:10 +00:00
nfs4client This patch fixes two little portability (to !GCC compilers) problems: 2003-12-11 11:30:26 +00:00
nfsclient Use function pointers to remove the depenancy cross dependancy on nfs4 2003-11-22 02:21:49 +00:00
nfsserver Fix some becuase -> because typos. 2003-12-17 16:12:01 +00:00
opencrypto style(9) pass and type fixups. 2003-12-16 14:13:47 +00:00
pc98 Make sigaltstack as per-threaded, because per-process sigaltstack state 2004-01-03 02:02:26 +00:00
pccard - Implement selwakeuppri() which allows raising the priority of a 2003-11-09 09:17:26 +00:00
pci Fix detection of RealTek 8129 PCI cards. Apparently, these cards 2004-01-02 17:22:12 +00:00
posix4 sched_setscheduler: Return EINVAL when a invalid policy is specified, 2003-09-13 18:46:24 +00:00
powerpc Make sigaltstack as per-threaded, because per-process sigaltstack state 2004-01-03 02:02:26 +00:00
rpc Change the definition of NULL on ia64 (for LP64 compilations) from 2003-12-07 21:10:06 +00:00
security Switch TCP over to using the inpcb label when responding in timed 2003-12-17 14:55:11 +00:00
sparc64 Make sigaltstack as per-threaded, because per-process sigaltstack state 2004-01-03 02:02:26 +00:00
sys Make sigaltstack as per-threaded, because per-process sigaltstack state 2004-01-03 02:02:26 +00:00
tools Changes for new SMP-safe kobj method dispatch algorithm. 2003-10-16 13:29:26 +00:00
ufs Set fs_ronly to the correct value in ffs_reload() when reloading the file 2003-12-07 05:16:52 +00:00
vm Revision 1.74 of vm_meter.c ("Avoid lock-order reversal") makes the release 2004-01-02 19:57:45 +00:00
Makefile