]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agomdoc(7) police: fixed bugs in rev. 1.19, split section headers names.
ru [Wed, 4 Jul 2001 10:53:15 +0000 (10:53 +0000)]
mdoc(7) police: fixed bugs in rev. 1.19, split section headers names.

23 years agomdoc(7) police: compact VFCF_ list.
ru [Wed, 4 Jul 2001 10:42:03 +0000 (10:42 +0000)]
mdoc(7) police: compact VFCF_ list.

23 years agomdoc(7) police: removed extraneous .Pp call.
ru [Wed, 4 Jul 2001 10:19:02 +0000 (10:19 +0000)]
mdoc(7) police: removed extraneous .Pp call.

23 years agoMake the last fix work properly on descriptors 1 and 2 (not just 0)
brian [Wed, 4 Jul 2001 09:32:34 +0000 (09:32 +0000)]
Make the last fix work properly on descriptors 1 and 2 (not just 0)

23 years agoMake sure you don't have a file descriptor leak for the 'real'
mjacob [Wed, 4 Jul 2001 07:43:10 +0000 (07:43 +0000)]
Make sure you don't have a file descriptor leak for the 'real'
underlying CAM device. This needs to be checked not only in
the open routine, but the device->fd has to be initialized
as well.

PR: 28688
Submitted (partially) by: T. William Wells <bill@twwells.com>
MFC after: 2 weeks

23 years agoInstall it with mode 550, and with default group ${BINGRP}.
ru [Wed, 4 Jul 2001 07:20:11 +0000 (07:20 +0000)]
Install it with mode 550, and with default group ${BINGRP}.

23 years ago- Document that this program is available to root only.
ru [Wed, 4 Jul 2001 07:17:24 +0000 (07:17 +0000)]
- Document that this program is available to root only.
- Document alternate way to fetch multicast info.
- Add RFC2080 reference.

Obtained from: OpenBSD (with mods)

23 years agoDescribe the condition when EACCES is returned more explicitly.
dd [Wed, 4 Jul 2001 06:29:36 +0000 (06:29 +0000)]
Describe the condition when EACCES is returned more explicitly.

Submitted by: bde

23 years agoMFCs noted: ALS4000 driver, ifconfig(8) support for IEEE 802.11
bmah [Wed, 4 Jul 2001 05:34:20 +0000 (05:34 +0000)]
MFCs noted:  ALS4000 driver, ifconfig(8) support for IEEE 802.11
devices, traceroute(8) default TTL from sysctl MIB.

23 years agoCheck the void * argument in the AC_FOUND_DEV case against NULL. Whether
mjacob [Wed, 4 Jul 2001 05:22:42 +0000 (05:22 +0000)]
Check the void * argument in the AC_FOUND_DEV case against NULL. Whether
correctly or not, this sometimes is propagated up via XPT.

23 years agoFollow Bruce's suggestions. They're probably wrong, but better than before.
mjacob [Wed, 4 Jul 2001 05:16:56 +0000 (05:16 +0000)]
Follow Bruce's suggestions. They're probably wrong, but better than before.

23 years agoAdd code, imperfect though it may be, for CAM_NEW_TRAN_CODE compilation.
mjacob [Wed, 4 Jul 2001 05:01:21 +0000 (05:01 +0000)]
Add code, imperfect though it may be, for CAM_NEW_TRAN_CODE compilation.

23 years agoHandle any of descriptors 0, 1 or 2 being closed when we're
brian [Wed, 4 Jul 2001 03:34:20 +0000 (03:34 +0000)]
Handle any of descriptors 0, 1 or 2 being closed when we're
envoked -- don't use them (as return values from open()), then
(say) close(STDIN_FILENO) when daemonising.

This is done by grabbing 3 descriptors to /dev/null at startup and
releasing them after we've daemonised.

MFC after: 1 week

23 years agoImplement mwakeup, mwakeup_one, cv_signal_drop and cv_broadcast_drop.
jake [Wed, 4 Jul 2001 00:32:50 +0000 (00:32 +0000)]
Implement mwakeup, mwakeup_one, cv_signal_drop and cv_broadcast_drop.
These take an additional mutex argument, which is dropped before any
processes are made runnable.  This can avoid contention on the mutex
if the processes would immediately acquire it, and is done in such a
way that wakeups will not be lost.

Reviewed by: jhb

23 years agoReduce the interface MTU by 2 when MPPE has been successfully negotiated.
brian [Tue, 3 Jul 2001 22:20:19 +0000 (22:20 +0000)]
Reduce the interface MTU by 2 when MPPE has been successfully negotiated.

This is necessary because MPPE will combine the protocol id with the
payload received on the tun interface, encrypt it, then prepend its
own protocol id, effectively increasing the payload by two bytes.

23 years agoDon't accept chap80lm by default - it doesn't work.
brian [Tue, 3 Jul 2001 22:20:11 +0000 (22:20 +0000)]
Don't accept chap80lm by default - it doesn't work.

MFC after: 1 week

23 years agoSilence some gcc warnings
brian [Tue, 3 Jul 2001 22:20:06 +0000 (22:20 +0000)]
Silence some gcc warnings

23 years agoConstify the format string.
des [Tue, 3 Jul 2001 21:46:43 +0000 (21:46 +0000)]
Constify the format string.

Submitted by: Mike Barcroft <mike@q9media.com>

23 years agoMake fdformat WARN=2 ready.
joerg [Tue, 3 Jul 2001 21:43:41 +0000 (21:43 +0000)]
Make fdformat WARN=2 ready.

23 years agoUse correct type of argument to fgetln.
mjacob [Tue, 3 Jul 2001 21:40:34 +0000 (21:40 +0000)]
Use correct type of argument to fgetln.

MFC after: 1 week

23 years agomdoc(7) police: fix spacing and punctuation issues.
dd [Tue, 3 Jul 2001 21:22:09 +0000 (21:22 +0000)]
mdoc(7) police: fix spacing and punctuation issues.

23 years agomdoc(7) police: fix spacing issues.
dd [Tue, 3 Jul 2001 21:20:06 +0000 (21:20 +0000)]
mdoc(7) police: fix spacing issues.

23 years agomdoc(7) police: fix spacing issue
dd [Tue, 3 Jul 2001 21:16:34 +0000 (21:16 +0000)]
mdoc(7) police: fix spacing issue

Submitted by: ru

23 years agoAccount for the machdep.msgbuf -> kern.msgbuf renaming.
tmm [Tue, 3 Jul 2001 19:51:53 +0000 (19:51 +0000)]
Account for the machdep.msgbuf -> kern.msgbuf renaming.

23 years agoUse the kern.msgbuf sysctl to get the message buffer on a running
tmm [Tue, 3 Jul 2001 19:49:31 +0000 (19:49 +0000)]
Use the kern.msgbuf sysctl to get the message buffer on a running
kernel, and remove setgid kmem, which is not needed any more.

23 years agoMake the code to read the kernel message buffer via sysctl machine-
tmm [Tue, 3 Jul 2001 19:44:07 +0000 (19:44 +0000)]
Make the code to read the kernel message buffer via sysctl machine-
independent and rename the corresponding sysctls from machdep.msgbuf and
machdep.msgbuf_clear (i386 only) to kern.msgbuf and kern.msgbuf_clear.

23 years agodrop setgid bit. ifmcstat(8) is not audited, and is needed only for root.
ume [Tue, 3 Jul 2001 18:15:07 +0000 (18:15 +0000)]
drop setgid bit.  ifmcstat(8) is not audited, and is needed only for root.

Obtained from: KAME
MFC after: 1 week

23 years agoproperly check DES weak key. KAME PR 363.
ume [Tue, 3 Jul 2001 17:46:48 +0000 (17:46 +0000)]
properly check DES weak key.  KAME PR 363.

Obtained from: KAME
MFC after: 1 week

23 years ago* simplify
cg [Tue, 3 Jul 2001 17:27:13 +0000 (17:27 +0000)]
* simplify

* add support for mic record channel

* add support for setblocksize

* make mpsafe

* make getptr accurate

* reduce buffer size from 64k to 16k for better synchronisation

23 years agoDon't give a bad example by starting a struct tag name with an
joerg [Tue, 3 Jul 2001 16:22:42 +0000 (16:22 +0000)]
Don't give a bad example by starting a struct tag name with an
underscore.  Names starting with an underscore are reserved.

23 years agoRemove spl's in uio_yield() that are covered by the sched_lock.
jhb [Tue, 3 Jul 2001 15:58:37 +0000 (15:58 +0000)]
Remove spl's in uio_yield() that are covered by the sched_lock.

23 years agoFix a typo: "must be have" -> "must have"
yar [Tue, 3 Jul 2001 15:02:36 +0000 (15:02 +0000)]
Fix a typo: "must be have" -> "must have"

MFC after: 5 days

23 years agoFirst, fix a leftover of the cut'n'paste from the kld* pages:
yar [Tue, 3 Jul 2001 14:56:08 +0000 (14:56 +0000)]
First, fix a leftover of the cut'n'paste from the kld* pages:
change the name of the page (.Nm) from "kldstat" to "modstat".
Second, don't claim that modstat(2) always returns 0. Actually,
it behaves as most syscalls do - returns 0 on success, or -1
on failure.

MFC after: 5 days

23 years agoUse correct paths to postfix the way we install it
eivind [Tue, 3 Jul 2001 14:16:45 +0000 (14:16 +0000)]
Use correct paths to postfix the way we install it

23 years agoremove obsolete typedefs.
cg [Tue, 3 Jul 2001 12:53:09 +0000 (12:53 +0000)]
remove obsolete typedefs.

only define INTR_TYPE_AV if it is not already defined.

23 years agouse TAILQ_FOREACH() in searching address list
ume [Tue, 3 Jul 2001 11:54:07 +0000 (11:54 +0000)]
use TAILQ_FOREACH() in searching address list

Obtained from: KAME
MFC after: 1 week

23 years agoAdd Transmeta Crusoe LongRun support.
iwasaki [Tue, 3 Jul 2001 10:03:24 +0000 (10:03 +0000)]
Add Transmeta Crusoe LongRun support.

Submitted by: Tamotsu HATTORI <athlete@kta.att.ne.jp>
Reviewed by: arch@ folks
MFC after: 1 week

23 years agoFixed the world breakage in rev. 1.8 (space after -I).
ru [Tue, 3 Jul 2001 09:48:28 +0000 (09:48 +0000)]
Fixed the world breakage in rev. 1.8 (space after -I).
While here, removed the GCCism (replaced with WARNS?=1).

23 years agoRemove duplicate $FreeBSD$ lines.
dd [Tue, 3 Jul 2001 08:32:34 +0000 (08:32 +0000)]
Remove duplicate $FreeBSD$ lines.

Approved by: bmah

23 years agoNew release notes: network device cloning, ich sound driver.
dd [Tue, 3 Jul 2001 08:25:54 +0000 (08:25 +0000)]
New release notes: network device cloning, ich sound driver.

# I have deliberately not mentioned the kernel compile directory move;
# people using buildworld aren't affected, and those that aren't had
# better be reading cvs-all and/or src/UPDATING.

23 years agoMention hardware supported by the new ich sound driver.
dd [Tue, 3 Jul 2001 08:19:06 +0000 (08:19 +0000)]
Mention hardware supported by the new ich sound driver.

Source: PR 25507

23 years agoRemove commented-out garbage that skipped updating schedcpu() stats for
jhb [Tue, 3 Jul 2001 08:03:56 +0000 (08:03 +0000)]
Remove commented-out garbage that skipped updating schedcpu() stats for
ithreads in SWAIT.

23 years agoJust check p_oncpu when determining if a process is executing or not.
jhb [Tue, 3 Jul 2001 08:00:57 +0000 (08:00 +0000)]
Just check p_oncpu when determining if a process is executing or not.
We already did this in the SMP case, and it is now maintained in the UP
case as well, and makes the code slightly more readable.  Note that
curproc is always executing, thus the p != curproc test does not need to
be performed if the p_oncpu check is made.

23 years agoAxe spl's that are covered by the sched_lock (and have been for quite
jhb [Tue, 3 Jul 2001 07:53:35 +0000 (07:53 +0000)]
Axe spl's that are covered by the sched_lock (and have been for quite
some time.)

23 years agoAdd a manpage for the acpi super-device. This is still fairly brief, and
msmith [Tue, 3 Jul 2001 07:45:04 +0000 (07:45 +0000)]
Add a manpage for the acpi super-device.  This is still fairly brief, and
will need to be fleshed out as the system's design solidifies.

23 years agoInclude the wait message and channel for msleep() in the KTR tracepoint.
jhb [Tue, 3 Jul 2001 07:39:06 +0000 (07:39 +0000)]
Include the wait message and channel for msleep() in the KTR tracepoint.

23 years agoFix a XXX comment by moving the initialization of the number of pbuf's
jhb [Tue, 3 Jul 2001 07:35:56 +0000 (07:35 +0000)]
Fix a XXX comment by moving the initialization of the number of pbuf's
for the vnode pager to a new vnode pager init method instead of making it
a hack in getpages().

23 years agoRemove bogus need_resched() of the current CPU in roundrobin().
jhb [Tue, 3 Jul 2001 05:33:09 +0000 (05:33 +0000)]
Remove bogus need_resched() of the current CPU in roundrobin().
We don't actually need to force a context switch of the current process.
The act of firing the event triggers a context switch to softclock() and
then switching back out again which is equivalent to a preemption, thus
no further work is needed on the local CPU.

23 years agoGrab Giant around postsig() since sendsig() can call into the vm to
jhb [Tue, 3 Jul 2001 05:27:53 +0000 (05:27 +0000)]
Grab Giant around postsig() since sendsig() can call into the vm to
grow the stack and we already needed Giant for KTRACE.

23 years agoQuiet warning by removing ast() prototype.
jhb [Tue, 3 Jul 2001 05:11:55 +0000 (05:11 +0000)]
Quiet warning by removing ast() prototype.

Forgotten by: jhb (me)

23 years agoAllow Giant to be recursed when a process terminates.
jhb [Tue, 3 Jul 2001 05:09:48 +0000 (05:09 +0000)]
Allow Giant to be recursed when a process terminates.

23 years agoArgh...this isn't ready for WARNS=2 on alpha.
mikeh [Tue, 3 Jul 2001 03:34:42 +0000 (03:34 +0000)]
Argh...this isn't ready for WARNS=2 on alpha.

23 years agoConstify and lockdown with WARNS=2.
mikeh [Tue, 3 Jul 2001 03:22:49 +0000 (03:22 +0000)]
Constify and lockdown with WARNS=2.

Submitted by: Mike Barcroft <mike@q9media.com>
MFC after: 2 weeks

23 years agoDo away with the ``err'' variable.
brian [Tue, 3 Jul 2001 01:02:26 +0000 (01:02 +0000)]
Do away with the ``err'' variable.

Inspired by: kris

23 years agoDocument continuation line support.
dd [Mon, 2 Jul 2001 23:59:06 +0000 (23:59 +0000)]
Document continuation line support.

PR: 8479
Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>

23 years agoCorrect handling of continuation lines. Instead of treating the
dd [Mon, 2 Jul 2001 23:56:01 +0000 (23:56 +0000)]
Correct handling of continuation lines.  Instead of treating the
backslash as nothing, treat it like a space so that adjacent lines
aren't glued together.

PR: 8479
Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>

23 years agoCorrect obviously wrong mistakes.
green [Mon, 2 Jul 2001 23:47:23 +0000 (23:47 +0000)]
Correct obviously wrong mistakes.

23 years agoEACCES may be returned if write permission was denied as well.
dd [Mon, 2 Jul 2001 22:53:40 +0000 (22:53 +0000)]
EACCES may be returned if write permission was denied as well.

PR: 28553
Submitted by: Ronald F. Guilmette <rfg@monkeys.com>

23 years agoRevert previous commit; it broke large file support on platforms that
dd [Mon, 2 Jul 2001 22:51:33 +0000 (22:51 +0000)]
Revert previous commit; it broke large file support on platforms that
had it to begin with (e.g., the Alpha).

Submitted by: bde

23 years agoUse the printstatus() function from ${.CURDIR}/../fdread/fdutil.c to
joerg [Mon, 2 Jul 2001 21:24:03 +0000 (21:24 +0000)]
Use the printstatus() function from ${.CURDIR}/../fdread/fdutil.c to
give a bit more information about up to 10 errors encountered during
formatting (unless -q has been specified, of course).

While being here, removed a bitrotten comment in the Makefile, and
kill the old Emacs local variable stuff at the end of fdformat.c
that's no longer useful anway.

23 years agoBreak out the function to print the FDC error information into
joerg [Mon, 2 Jul 2001 21:21:58 +0000 (21:21 +0000)]
Break out the function to print the FDC error information into
fdutil.c so it can be used elsewhere.

23 years agoAdd a couple of major numbers for ICP Vortex (who were acquired by Intel,
msmith [Mon, 2 Jul 2001 21:09:05 +0000 (21:09 +0000)]
Add a couple of major numbers for ICP Vortex (who were acquired by Intel,
thus taking over the SRC controllers).

23 years agoCreate gif devices in the "gifconfig" stage while configuring them.
brooks [Mon, 2 Jul 2001 21:08:48 +0000 (21:08 +0000)]
Create gif devices in the "gifconfig" stage while configuring them.

Reviewed by: ru, ume
Obtained from: NetBSD
MFC after: 1 week

23 years agogif(4) and stf(4) modernization:
brooks [Mon, 2 Jul 2001 21:02:09 +0000 (21:02 +0000)]
gif(4) and stf(4) modernization:

 - Remove gif dependencies from stf.
 - Make gif and stf into modules
 - Make gif cloneable.

PR: kern/27983
Reviewed by: ru, ume
Obtained from: NetBSD
MFC after: 1 week

23 years agoSupport network device cloning via create and destroy options.
brooks [Mon, 2 Jul 2001 20:52:34 +0000 (20:52 +0000)]
Support network device cloning via create and destroy options.

Reviewed by: ru, ume
Obtained from: NetBSD
MFC after: 1 week

23 years agoDocument network device cloning ioctls.
brooks [Mon, 2 Jul 2001 20:50:37 +0000 (20:50 +0000)]
Document network device cloning ioctls.

Reviewed by: ru, ume
MFC after: 1 week

23 years agoAdd kernel infrastructure for network device cloning.
brooks [Mon, 2 Jul 2001 20:49:25 +0000 (20:49 +0000)]
Add kernel infrastructure for network device cloning.

Reviewed by: ru, ume
Obtained from: NetBSD
MFC after: 1 week

23 years agos/Netherlands/the Netherlands
wilko [Mon, 2 Jul 2001 18:31:34 +0000 (18:31 +0000)]
s/Netherlands/the Netherlands

ISO3166 is *plain wrong* ...

Requested by: grog
MFC after: 1 week

23 years agocorrect arg to getopt (-P takes arg).
ume [Mon, 2 Jul 2001 17:50:50 +0000 (17:50 +0000)]
correct arg to getopt (-P takes arg).

Submitted by: mikeh
MFC after: 1 week

23 years agoA slightly more complete change to timeouts:
mjacob [Mon, 2 Jul 2001 17:48:59 +0000 (17:48 +0000)]
A slightly more complete change to timeouts:

1. Add SA_IO_TIMEOUT as an option (4 minutes default) to cover reads,
writes, wfm, test unit ready.

2. Add internal SCSIOP_TIMEOUT (e.g., for mode sense) at 1 minute. This
should not require an option, but is cleaner to parameterize.

MFC after: 1 week

23 years agomake it compile again in -current
mjacob [Mon, 2 Jul 2001 17:36:11 +0000 (17:36 +0000)]
make it compile again in -current

23 years agoAdd Cisco Aironet 350 Series.
brooks [Mon, 2 Jul 2001 16:56:12 +0000 (16:56 +0000)]
Add Cisco Aironet 350 Series.

Approved by: bmah

23 years agoReviewed by: Matthew Jacob
lars [Mon, 2 Jul 2001 16:39:17 +0000 (16:39 +0000)]
Reviewed by:  Matthew Jacob
Changed the timeout to wait for writing of filemarks to complete from 1
minute to 3 minutes. This should probably be enhanced to be a sysctl variable.

23 years agoadd MR-AFS port numbers
assar [Mon, 2 Jul 2001 16:03:50 +0000 (16:03 +0000)]
add MR-AFS port numbers

23 years agoWhile in there fixing a fragment logging bug, fix it so we log
cjc [Mon, 2 Jul 2001 15:50:31 +0000 (15:50 +0000)]
While in there fixing a fragment logging bug, fix it so we log
fragments "right." Log fragment information tcpdump(8)-style,

   Jul  1 19:38:45 bubbles /boot/kernel/kernel: ipfw: 1000 Accept ICMP:8.0 192.168.64.60 192.168.64.20 in via ep0 (frag 53113:1480@0+)

That is, instead of the old,

  ... Fragment = <offset/8>

Do,

  ... (frag <IP ID>:<data len>@<offset>[+])

PR: kern/23446
Approved by: ru
MFC after: 1 week

23 years agoDetect the device on e.g. Dell OptiPlex GX110s.
green [Mon, 2 Jul 2001 15:29:38 +0000 (15:29 +0000)]
Detect the device on e.g. Dell OptiPlex GX110s.

23 years agoMake all this compile on 4.3, modulus sbuf.
green [Mon, 2 Jul 2001 15:27:28 +0000 (15:27 +0000)]
Make all this compile on 4.3, modulus sbuf.

23 years agoLose any stray host bits that a user may have entered when providing
cjc [Mon, 2 Jul 2001 15:26:47 +0000 (15:26 +0000)]
Lose any stray host bits that a user may have entered when providing
a network number and netmask to the '-a' option.

Approved by: ru
MFC after: 1 week

23 years agoAdd device ID for the OHCI controller in the Apple KeyLargo chip.
benno [Mon, 2 Jul 2001 14:03:25 +0000 (14:03 +0000)]
Add device ID for the OHCI controller in the Apple KeyLargo chip.

23 years agoSilence some of the -Wnon-const-format warnings and add __printflike()
kris [Mon, 2 Jul 2001 12:27:49 +0000 (12:27 +0000)]
Silence some of the -Wnon-const-format warnings and add __printflike()
to a function prototype which needs it.

Approved by: brian
MFC After: 2 weeks

23 years agoFix some typos.
brian [Mon, 2 Jul 2001 12:23:28 +0000 (12:23 +0000)]
Fix some typos.

Submitted by: Jimmy Olgeni <olgeni@uli.it>
MFC after: 1 week

23 years agoFixed warning message.
nyan [Mon, 2 Jul 2001 10:18:56 +0000 (10:18 +0000)]
Fixed warning message.

Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)

23 years agoFixed to support C-NET(9N)E.
nyan [Mon, 2 Jul 2001 10:14:57 +0000 (10:14 +0000)]
Fixed to support C-NET(9N)E.

23 years ago"changing" -> "charging"
nik [Mon, 2 Jul 2001 09:33:50 +0000 (09:33 +0000)]
"changing" -> "charging"

PR:             docs/15004
Submitted by:   Kazuo Horikawa <horikawa@jp.FreeBSD.org>

23 years agoMinor style(9) changes before I get going.
imp [Mon, 2 Jul 2001 06:12:59 +0000 (06:12 +0000)]
Minor style(9) changes before I get going.

23 years agoFix a couple of compile warnings because WLDEBUG and WLCACHE were
imp [Mon, 2 Jul 2001 06:02:39 +0000 (06:02 +0000)]
Fix a couple of compile warnings because WLDEBUG and WLCACHE were
not defined.

23 years agoMove wl driver to dev/wl. Repo copied to dev/wl, the old copies
imp [Mon, 2 Jul 2001 05:58:47 +0000 (05:58 +0000)]
Move wl driver to dev/wl.  Repo copied to dev/wl, the old copies
removed and a minimal number of changes to make it compile in the new
location.

# I have a fully converted on a disk that may be crashed.  If it is
# crashed, I'll redo the work.

23 years agoBump config version in config.
imp [Mon, 2 Jul 2001 05:38:26 +0000 (05:38 +0000)]
Bump config version in config.

23 years agoBump config version.
imp [Mon, 2 Jul 2001 05:36:32 +0000 (05:36 +0000)]
Bump config version.

23 years agoRepo copy i82586.h to dev/ic/i82586.h.
imp [Mon, 2 Jul 2001 05:29:58 +0000 (05:29 +0000)]
Repo copy i82586.h to dev/ic/i82586.h.

This file currently is very ie specific, but I have plans to change
that...

23 years agoBring back part of rev. 1.296 I accidently reverted in the previous
dd [Mon, 2 Jul 2001 00:24:23 +0000 (00:24 +0000)]
Bring back part of rev. 1.296 I accidently reverted in the previous
commit.

23 years agoIntroduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros. As the
dd [Mon, 2 Jul 2001 00:18:04 +0000 (00:18 +0000)]
Introduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros.  As the
names suggest, they perform methods on Device's.  In addition, they
check that the pointer passed to them is valid; if it isn't, they
pretend that the action failed.  This fixes some crashes due to NULL
dereferences (e.g., PR 26509).

Approved by: jkh (some time ago)

23 years agoCombine a couple of tests to reduce the indentation level.
imp [Sun, 1 Jul 2001 23:41:57 +0000 (23:41 +0000)]
Combine a couple of tests to reduce the indentation level.

23 years agoSome interrelated interrupt changes.
imp [Sun, 1 Jul 2001 23:41:43 +0000 (23:41 +0000)]
Some interrelated interrupt changes.

Frist, for pci slots, make the setup intr save the requested interrupt
vector and arg and return rather than passing it up to our parent.  On
interrupts, we call this vector iff there's a card in the slot.  This
should eliminate some of the hangs or "weird" messages that people see
when ejecting cards and also help close the race window somewhat.
Reading the pci bus one more time for this information is judged to be
an acceptible tradeoff since it is very very fast.

Cleanup a little how we detect unsupported cards.  Only detect
unsupported cards (eg cardbus cards) on card insertion (or more
pedantically when a card is actually present).  This should allow us
to change the message in the future to "cardbus card not supported
with OLDCARD" :-).

Note:
We may also consider this for the ISA bus case, but there the
reads are much more expensive and the location of the CD pin
status lines appears to be less standardized.  Also, the ISA
management interrupt isn't shared with the card's interrupt.
The mutliplex the CSC and function interrupts bit also appears
to be non-standard (or at least not imlemented on all
bridges).

23 years agoWrite zeros into the base/bounds register bars. We need to do this
imp [Sun, 1 Jul 2001 23:41:24 +0000 (23:41 +0000)]
Write zeros into the base/bounds register bars.  We need to do this
because NEWBUS (and I think some versions of Windows sometimes) writes
0xffffffff to these registers to disable them.  When they are
"disabled" like this, writing memory ranges to the pcic registers are
ignored and you will get "card (null) (null)" when you insert a call
otherwise.

23 years agoFirst cut at getting the pcic controller and power information for
imp [Sun, 1 Jul 2001 23:41:09 +0000 (23:41 +0000)]
First cut at getting the pcic controller and power information for
each of the bridge chips.  Before we wrongly assumes that all cardbus
bridge chips were intel compatible step A/B.  This mostly worked, but
likely caused problems with certain cirrus logic cardbus bridges.

23 years agoClarify some of the 3.3V code with better comments. Also, since the
imp [Sun, 1 Jul 2001 23:40:54 +0000 (23:40 +0000)]
Clarify some of the 3.3V code with better comments.  Also, since the
types are treated as a bitfield, test them as such.

23 years agoAdd comments explaining why we do the somewhat odd irq mapping on PC98
imp [Sun, 1 Jul 2001 23:40:41 +0000 (23:40 +0000)]
Add comments explaining why we do the somewhat odd irq mapping on PC98
machines with C-BUS cards.

23 years agoMinor whitespace nit.
imp [Sun, 1 Jul 2001 23:40:19 +0000 (23:40 +0000)]
Minor whitespace nit.

23 years agoObrien created this directory, but I didn't cvs add cvsignore
imp [Sun, 1 Jul 2001 23:37:03 +0000 (23:37 +0000)]
Obrien created this directory, but I didn't cvs add cvsignore