Commit Graph

88144 Commits

Author SHA1 Message Date
gshapiro
3c5a1e863a Import sendmail 8.12.9 2003-03-29 19:12:53 +00:00
gallatin
93ebd22113 Fix the osf1 abi module on SMP systems by making the size of
a struct pmap be the same on both SMP and UP kernels.

It turns out that the size of a struct pmap is much larger on alpha
SMP systems due to the number of pm_asn's being dependant on MAX_CPU.
Since modules are supposed to be SMP agnostic, this has the affect of
moving around the "interesting bits" of the vmspace (daddr, dsize)
that the osf1 module wants to frob.  So the module ends up scribbling in a
pmap struct, and the user either sees a panic, or an application failure.

While here, I've also shrunk MAXCPU to 8 now that it affects the size
of pmap structs on UP systesm.  This should be plenty, as I'm
unware of any hardware we currently run in which supports more than 8
CPUs.
2003-03-29 18:22:29 +00:00
silby
7672cdabc1 Have sis_encap use m_defrag if:
1.  The chain passed in is > 31 fragments long
or
2.  The chain will not fit in the remaining descriptors without
    defragmentation.

This is slightly less clear than other network drivers because the sis
chips share one descriptor list for all packets, it seems.

Before this change, a > 127 fragment chain would get stuck in the IFQUEUE
permanently, bringing all network traffic to a halt.

MFC after:	2 weeks
2003-03-29 17:50:37 +00:00
deischen
83fff504a2 Align signal frame placed on stack to 16 bytes so that SSE FPU register
restores can work.  Also correct allocation for signal frame size.

Reviewed by:	mini
2003-03-29 16:38:15 +00:00
mdodd
cb422c5a12 opt_geom.h is no longer required for this module. 2003-03-29 16:13:11 +00:00
mdodd
e406e0b18e Add 'idt' driver to module build. 2003-03-29 15:56:13 +00:00
mdodd
9816db5d41 - Deal with netisr changes.
- Wrap idt_atm_harpconn() in conditional define T_ATM_BUFQUEUE
2003-03-29 15:55:04 +00:00
mdodd
7cef8dca66 Add module infrastructure for 'dpt' driver. 2003-03-29 15:47:13 +00:00
mdodd
0c2e8436ad Add module infrastructure for 'if_ex'. 2003-03-29 15:41:44 +00:00
mdodd
a87bfac17e - Declare ex_devclass in if_ex.c
- Rename module datastructures in if_ex_isa.c to be more standard.
2003-03-29 15:38:53 +00:00
mdodd
520c569b33 - Move ex_pccard_detach() to if_ex.c and rename it to ex_detach().
- Add detach method to ISA front end.
2003-03-29 15:34:26 +00:00
mdodd
190d1d3076 Reformat for readability. 2003-03-29 15:33:04 +00:00
mdodd
396a11166e Add module infrastructure for 'vpd' and 'smbios' and move 'smbios'
to new home.
2003-03-29 15:20:45 +00:00
des
4586cf9c9f Don't dereference flags if NULL (see http.c rev 1.87) 2003-03-29 15:15:38 +00:00
mdodd
72d7240eb4 Remove useless code. 2003-03-29 14:51:50 +00:00
mdodd
2a0686e471 Don't compile the identify method yet. 2003-03-29 14:50:14 +00:00
mdodd
a88ede7461 Register dependency on the elink module. 2003-03-29 13:45:17 +00:00
mdodd
f9eb5a42ac Add module infrastructure for elink. 2003-03-29 13:42:20 +00:00
mdodd
a35d6956d7 Add module infrastructure for if_ie. 2003-03-29 13:40:41 +00:00
sos
ae77320bcd Second round of updates to the ATA driver.
Clean up the DMA interface too much unneeded stuff crept in with
the busdma code back when.

Modify the ATA_IN* / ATA_OUT* macros so that resource and offset
are gotten from a table. That allows for new chipsets that doesn't
nessesarily have things ordered the good old way. This also removes
the need for the wierd PC98 resource functions.

Tested on: i386, PC98, Alpha, Sparc64
2003-03-29 13:37:09 +00:00
mdodd
bc2cad2824 - Move driver to newbus.
- Provide identify methods for EtherExpress and 3c507 cards; this
  means these cards no longer need wired configs.
- Provide a detach method.
2003-03-29 13:36:41 +00:00
mdodd
eae07257bf - Change ELINK_ID_PORT; the 3c507 likes 0x100 better.
- Add module metadata.
2003-03-29 13:18:20 +00:00
mdodd
f3cf786d41 Clear the IFF_OACTIVE flag at the end of ieinit(). This prevents
the adapter from becoming wedged when when the interface is
is brought up by ether_ioctl() (when you set an IP address for example.)

Confirmed this "fix" from NetBSD's i82586 backend.  It seems hackish
to me but whatever.
2003-03-29 12:42:01 +00:00
mtm
3e5e958278 Fill in the rest of the fields in the resulting struct tm
from strptime(3). Previously, they would get filled only
for the %s specifier and as a side effect of using the
the %Z specifier with a GMT time zone.

PR:		misc/48993
Approved by:	markm (mentor)
Silence on:	-standards
2003-03-29 11:55:37 +00:00
kris
f9a42d9bf1 Correct a typo in previous commit 2003-03-29 10:12:15 +00:00
mdodd
c8a7820f1c 'speaker' not 'atspeaker' 2003-03-29 10:01:03 +00:00
mdodd
548154d3c7 Retire 'atspeaker' and 'pcspeaker'. We'll use 'speaker' which
is the same as the config device directive.

Reminded by:	 Takahashi Yoshihiro <nyan@jp.FreeBSD.org>
2003-03-29 09:59:49 +00:00
mdodd
5cd1f73974 Adjust shared memory allocation to work on cards with only 8 KB of RAM. 2003-03-29 09:49:22 +00:00
mdodd
35bfc7dd45 Clean up argument comments for bus_dma_tag_create() calls. 2003-03-29 09:46:10 +00:00
suz
6b272be536 fixed a mbuf leak when an IP packet from ESP tunnel is redirected
obtained from:	KAME
2003-03-29 08:31:28 +00:00
mdodd
f2be92d462 - Track resources in our softc.
- Sanitize dpt_alloc().
- Add helper functions for resource alloc/release.
- Add detach method.
- Relocate definition of devclass_t.
- Move some debugging output behind bootverbose.
- Implement an identify method for ISA devices
  but don't use it right now.
2003-03-29 08:30:45 +00:00
silby
821720ce24 Fix up the long mbuf chain recovery code to use m_defrag; the old
code messed up on B & C chipsets because it lost the packet header
and therefore the flag indicating the need for hardware checksums.

MFC after:	2 weeks
2003-03-29 06:34:25 +00:00
alc
ce8719b0a3 Pass the vm_page's address to sf_buf_alloc(); map the vm_page as part
of sf_buf_alloc() instead of expecting sf_buf_alloc()'s caller to map it.

The ultimate reason for this change is to enable two optimizations:
(1) that there never be more than one sf_buf mapping a vm_page at a time
and (2) 64-bit architectures can transparently use their 1-1 virtual
to physical mapping (e.g., "K0SEG") avoiding the overhead of pmap_qenter()
and pmap_qremove().
2003-03-29 06:14:14 +00:00
silby
c333b6dc07 Add the m_defrag routine, as discussed on committers@. This
incarnation should address the concerns of all in the discussion,
and keeps statistics which show how much it is used.

MFC after:	2 weeks
2003-03-29 05:48:36 +00:00
silby
ddeffc8de7 Add MBUF_FRAG_TEST to NOTES.
Submitted by:	Hiten Pandya <hiten@unixdaemons.com>
2003-03-29 05:46:34 +00:00
imp
886a0f735b Note: this is OLDCARD, and tweak comment about clpd 6729/30. 2003-03-29 05:44:49 +00:00
imp
cc3c2376b5 Add a new man page for bus_activate_resource and
bus_deactivate_resource.  It could use some improvement, and others
are welcomed to do so :-)
2003-03-29 05:16:15 +00:00
imp
8ca9d4ff88 Clearify what happens with the cookiep in various cases. 2003-03-29 05:11:14 +00:00
imp
bdf5f2a8ae Fix some typos:
race->rare
rman_activate_resource -> bus_activate_resource

Add xref to bus_activate_resource
Minor markup changes for the start/end/count parameters.
2003-03-29 05:09:15 +00:00
obrien
95fd524e93 320.rdist is OBE as we don't have rdist in the base system any more. 2003-03-29 03:28:28 +00:00
obrien
dc6d40bd10 This is OBE as we don't have rdist in the base system any longer. 2003-03-29 03:27:49 +00:00
obrien
a07d739e55 Globally use -mieee in /usr/src for Alpha. 2003-03-29 03:14:24 +00:00
obrien
6015b56065 Reduce "code duplication" for AMD CPU's. 2003-03-29 03:13:19 +00:00
obrien
151315bd69 Back out the totally unapproved backout of my commits. 2003-03-29 03:03:42 +00:00
seanc
f684e60cff Small mdoc fix 2003-03-29 02:09:02 +00:00
mdodd
6e792e57a3 Text formatting changes. 2003-03-29 01:53:13 +00:00
mdodd
7a3c3fc25c Don't panic if we aren't plugged into a hub. 2003-03-29 01:40:42 +00:00
sam
1a5af753c2 add missing copyright notices
Noticed by:	Robert Watson
2003-03-28 20:28:05 +00:00
ume
80292fac79 If IPCP is disabled, susccess of IPV6CP negotiation is sufficient
to communicate by IPv6.  So, the prompt should be `PPP' rather
than `PPp'.
2003-03-28 18:23:43 +00:00
bmah
8236379a6c Typo fixes. Translators can probably ignore these.
Submitted by:	ispell(1)
2003-03-28 18:22:23 +00:00