Commit Graph

43539 Commits

Author SHA1 Message Date
phk
6aec96ae19 Remove unused #includes.
Obtained from:	http://bogon.freebsd.dk/include
1999-12-08 08:59:40 +00:00
imp
8c9fcd6df6 Switch to using suspend/resume methods rather than the APM hooks.
Should have no effect, but does make things a little cleaner.  I
thought this was the race that was causing problems, but it turned out
to be in pccardd waking up after the empty/insert events had happened
and being confused.

Minor cleanup:
o Remove isahd from pccard_devinfo
o remove extra from controller
o formatting nits
o use PCCARD_DEVINFO(d) rather than a bare device_get_ivars(d)
1999-12-08 07:55:20 +00:00
imp
33db644428 If last state was supended, remove the card. This is a kludge, there
is a race here that the old code didn't deal with, and I'm not
completely sure this is the right way to solve it, but it works here.

Should get rid of the dreaded "No free configuration for card" message.
1999-12-08 07:47:41 +00:00
obrien
32f727064f Style nit. 1999-12-08 06:42:50 +00:00
obrien
554e4575a5 Document what "X" in the table means. 1999-12-08 06:42:08 +00:00
obrien
4e717e558d When erroring out that there is not enough space to write the corefile,
tell the user how much space is avaible for writing the corefile, and how
much space we wanted.
1999-12-08 06:22:58 +00:00
wpaul
62f60a9f9a Fix alloc_driver() so that calls devclass_get_device() with slt->slotnum
as the unit argument instead of 0. disable_slot() calls
devclass_get_device() correctly, however because alloc_driver() does
it wrong, disable_slot() is unable to locate the child devices
attached to the pccard bus and thus fails to call device_delete_child()
on them. The end result is that when a card is removed, its detach
routine is never called, and re-insertion always fails.

With this fix (and the previous one to if_wi.c), I can now insert,
remove and re-insert my WaveLAN/IEEE card and things behave correctly.
kldunloading the if_wi.ko module also seems to work properly now.

Ok'ed by: imp
1999-12-08 05:34:17 +00:00
ken
8375955e22 Revamp the devstat priority system. All disks now have the same priority.
The same goes for CD drivers and tape drivers.  In systems with mixed IDE
and SCSI, devices in the same priority class will be sorted in attach
order.

Also, the 'CCD' priority is now the 'ARRAY' priority, and a number of
drivers have been modified to use that priority.

This includes the necessary changes to all drivers, except the ATA drivers.
Soren will modify those separately.

This does not include and does not require any change in the devstat
version number, since no known userland applications use the priority
enumerations.

Reviewed by:	msmith, sos, phk, jlemon, mjacob, bde
1999-12-08 04:45:23 +00:00
green
1fd819e3ea I've been Brucified! I did evil things with typedefs, but I'll do it
the correct (but less aesthetic) way, now.  New lesson: correctness
and aestheticity may be mutually exclusive at times.

Brucified by:	bde
1999-12-08 02:44:46 +00:00
wpaul
a8da2aa6b6 Fix invocation of bus_teardown_intr(). The last arg is supposed to be
sc->wi_intrhand, not &sc->wi_intrhand.
1999-12-08 02:00:10 +00:00
imp
a124f96958 o Implement IRQ activation. We do this in bus_{setup,teardown}_intr,
per discussions on -arch.  This is different than -current's pccard
  code, but shouldn't have any real difference.
o More code cleanup.

Next step: convert bus_space_* mapping stuff to newbus.
1999-12-08 01:42:44 +00:00
chris
3e8f8491d2 Add a cross-reference to fabs(3) man page.
PR:		docs/15337
Submitted by:	Bruce A. Mah <bmah@ca.sandia.gov>
1999-12-07 23:09:58 +00:00
sos
17a58c0666 Commit the kernel part of our DVD support. Nothing much to say really,
its just a number of new ioctl's, the rest is done in userland.
1999-12-07 22:25:28 +00:00
chris
f08cd34c5b Fix typo errors, remove repeated paragraphs, update incorrect (i.e. mixed up)
information.

PR:		docs/15139
Submitted by:	Kazuo Horikawa <horikawa@jp.FreeBSD.org>
1999-12-07 22:10:35 +00:00
sos
b61648c4af Try a little harder at the VIA DMA support.
Only use UDMA66 on 82C686 and with prober cable.
1999-12-07 22:07:18 +00:00
wpaul
16c3784386 Correct the synopsis for the wi(4) driver: it's just "device wi0" now, not
"device wi0 at isa? port? irq?".
1999-12-07 21:52:41 +00:00
wpaul
389b0b8c29 Spruce up the Sundance ST201 driver:
- Convert to using TX descritor polling similar to the xl driver (the
  ST201 is a clone of the 3c90xB chipset and offers the same transmit
  polling scheme). This should reduce TX overhad a little.

- Make sure to reset PHY when switching mode, as in the starfire driver.

- Fix instances of free() that should be contigfree().

- Remove dead code.
1999-12-07 20:14:42 +00:00
imp
355b96ec93 Bump CIS_MAXSTR from 30 to 254. pccard appears to define the entire
section we take them from to be up to 255 bytes long, so that's the
max size for the string.  They can't all be this big, but I don't have
a better number and better to be a little long than a little short.

Also only consume len characters of the cis buffer so we don't run off
the end into the next buffer and get garbage.  This second patch
shouldn't impact anything, but I'll hold off back porting this to
-stable until I get more reports on the stability before/after this
fix.
1999-12-07 19:23:56 +00:00
wpaul
ee47e65120 Tweak the DC_REDUCED_MII_POLL code in dc_mii_tick() for the DC_IS_INTEL()
case. The idea is to reduce how often we call mii_tick(), however currently
it may not be called often enough, which prevents autonegotiation from
being driven correctly.

This should improve the chances of successfully autonegotiating media
settings on non-MII 21143 NICs. (Still waiting for confirmation from
some testers, but the code is clearly wrong in any case.)
1999-12-07 19:18:41 +00:00
msmith
9b73fddca4 Update the sample for $init_path to reflect the kernel default. 1999-12-07 18:35:58 +00:00
msmith
8111b30ac6 Update to reflect use of : not ; as separator in paths passed to the
kernel.
1999-12-07 18:31:43 +00:00
shin
6014edd8cd udp IPv6 support, IPv6/IPv4 tunneling support in kernel,
packet divert at kernel for IPv6/IPv4 translater daemon

This includes queue related patch submitted by jburkhol@home.com.

Submitted by: queue related patch from jburkhol@home.com
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
1999-12-07 17:39:16 +00:00
roger
101d481051 Fix bug where tuner i2c address was not set for IMS Turbo cards
Put back Hauppauge Tuner types 0x5, 0x0a, 0x1a which I deleted by mistake.
1999-12-07 17:23:39 +00:00
dfr
696a713bca Build gasp (GAS Preprocessor). This is needed for building Glide. 1999-12-07 17:01:27 +00:00
sos
30b91d0f9f Fix support for disk with > 64K cyls. 1999-12-07 14:49:00 +00:00
peter
89f3d70214 Temporary adjustment to build after pnp changes. There is a new version
in the pipeline apparently.

OK'ed by: hm
1999-12-07 12:06:31 +00:00
yokota
82881d7a30 Fix the ioctl CONS_FINDMODE and its underlying subroutine
xxx_query_mode() in the vga and vesa drivers.

- xxx_query_mode() returns 0 (success) and a positive error number.
- Copy mode information on success.
- Remove redundant structure copy.

The bug first found in -STABLE by jmg.
1999-12-07 11:23:58 +00:00
kato
13e5bced39 Merge from sys/isa/fd.c rev 1.170. 1999-12-07 09:32:59 +00:00
kato
55d8bdb52a Merge from sys/isa/sio.c rev 1.277 & 1.278. 1999-12-07 09:29:15 +00:00
kato
74f64cc815 Merge from sys/i386/conf/files.i386 rev 1.283. 1999-12-07 09:23:44 +00:00
kato
b99664231e Merge from sys/dev/syscons/syscons.c rev 1.328. 1999-12-07 09:21:19 +00:00
kato
c5b32fb8d2 Merge from sys/i386/i386/userconfig.c rev 1.162 & 1.163. 1999-12-07 09:16:52 +00:00
imp
7775a61eb2 Tonight's cleanups.
o Implement memory and I/O activation/deactivation.  irq not handled.
o switch pcic_chip functions around to use more convenient types.
o kill __P and most of the old K&R prototypes just to be mean.
o minor other nits
1999-12-07 06:44:38 +00:00
julian
c2b6c6a872 Remove a bunch of un-needed includes.
Submitted by: phk@freebsd.org
1999-12-07 05:50:48 +00:00
msmith
b5e3ab90b2 Change the default poweroff delay from 0 to 5 seconds. This seems to be
adequate for the IDE disks that I have available for testing.  Most seem
to wait between 1 and 3 seconds before flushing their caches.

Add the ability to override the delay at compile time via the
undocumented option POWEROFF_DELAY.  The delay can still be set via
sysctl as it was originally implemented.
1999-12-07 04:35:37 +00:00
dcs
81bb37695f Make some examples reflect defaults. 1999-12-07 04:24:05 +00:00
ken
22b1677679 Recognize the Pioneer CD-ROM DRM-6324X as a changer.
PR:		kern/15198
Submitted by:	Don Lewis <truckman@FreeBSD.org>
1999-12-07 04:14:56 +00:00
green
9caf6bd1bb Do proper constification in args.c. This shuts up -Wcast-qual (thanks,
bfumerola for that pointer!) in GCC complaining about losing a const.

While I'm here, might as well mark in the Makefile that I'm the
${MAINTAINER}.  It seems like that's what everyone's doing these days.
1999-12-07 03:32:37 +00:00
chris
5ebc22aaa4 The typo was actually that `if'' was misspelled as `it.'' 1999-12-07 03:16:18 +00:00
chris
2bd8fe438d Fix a typo (specifically, the word ``it'' was used twice in a row where it
did not need to be).

PR:		15207
Submitted by:	Kazuo Seki <seki@is.utsunomiya-u.ac.jp>
1999-12-07 03:13:17 +00:00
billf
2f3a663796 -Wall cleanup / variable correctness.
Reviewed by:	green
1999-12-07 03:00:55 +00:00
chris
973a1eed55 Change `.Dq Fl o'' to `.Dq -o'' 1999-12-07 02:47:59 +00:00
billf
6b67892bb9 -Wall cleanup.
XXX: The signal handling "fix" for worm(6) is wrong. However, the functions
themselves are wrong as well: See sigaction(2).
1999-12-07 02:01:29 +00:00
billf
bf1a27fc48 Reckognize the 'Avance Asound 100'
Submitted by:	Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de>
1999-12-07 01:53:24 +00:00
n_hibma
4f5bf1afbd Add vendor NetChip with its device NET1080 (host-to-host adapter) 1999-12-07 01:19:51 +00:00
archie
6e9a34604a Add reference to netgraph(4) in the 'see also' section. 1999-12-06 23:35:40 +00:00
imp
6e69b4a9b7 "raw" -> "block" Block devices have been what are now gone, not "raw"
devices.

Submitted by: David O'Brian
1999-12-06 22:42:01 +00:00
phk
a66f22b1e1 I always forget to check before I reboot a system, and while it
boots I try in vain to remember which month or even year this system
was last booted in.

Print out the uptime before rebooting, and give people like me
less (or more as it may be) to think about while the systems boots.
1999-12-06 22:35:51 +00:00
wosch
b22d2604af Include BSD-license.
PR:		misc/15262
Submitted by:	 alex@big.endian.de
1999-12-06 22:33:40 +00:00
joe
f38cb74fea Mention the '6' flag in the flags summary. (Forgotten in the last commit). 1999-12-06 21:49:07 +00:00