Søren Schmidt
568f03ed88
Fix the clockprobe test on the Sil 680
2002-09-16 09:37:26 +00:00
Josef Karthauser
56c4ff5427
Deprecate the USB_SETDEBUG IOCTL as debug levels can now be set
...
using sysctl.
2002-09-15 22:35:58 +00:00
Poul-Henning Kamp
c3bdb2f779
Suitably shrink a comment so it applies again.
...
Submitted by: bde
2002-09-15 21:25:55 +00:00
Eric Anholt
81ac2d2606
Fix i810 after i830 commit.
...
Submitted by: David Dawes <dawes@XFree86.Org>
2002-09-15 08:43:23 +00:00
Bruce Evans
ab85003bf5
Fixed breakage from removing the used include of <sys/buf.h> in the
...
previous commit:
Include <sys/mutex.h> and its prerequisite <sys/lock.h> instead of
depending on namespace pollution in <sys/buf.h>. Only do this in the
__FreeBSD_version > 500000 case although the __FreeBSD_version < 500000
case has already rotted.
2002-09-15 08:21:14 +00:00
Poul-Henning Kamp
2f11d560cc
remove #includes of <sys/bio.h> where not needed.
2002-09-14 18:59:32 +00:00
Poul-Henning Kamp
296bbb4cfb
FreeBSD -current doesn't need <sys/buf.h> or <sys/bio.h>.
2002-09-14 18:58:36 +00:00
Katsushi Kobayashi
3c60ba66c4
Initial import for IEEE1394 OHCI chipdet device driver and SBP-2 (Serial
...
Bus Protocol 2:SCSI over IEEE1394) support for CAM.
2002-09-13 12:31:56 +00:00
Poul-Henning Kamp
02aad38c79
Fix a bug were a struct bio was freed and certain members subsequently
...
examined. Use biowait() instead of DIY.
2002-09-13 11:37:38 +00:00
Maxime Henrion
2dfbcdd46d
Fix another two printf() format errors which weren't warned
...
about because the bio_blknos were bogusly casted to long long.
2002-09-13 09:37:44 +00:00
Maxime Henrion
92faa7b50f
Fix another printf() format error which wasn't warned about
...
because the bio_blkno was bogusly casted to an int.
2002-09-13 09:19:55 +00:00
Maxime Henrion
f368af933d
Fix a printf() format error on 64 bits architectures.
...
Also fix some style bugs on the same line.
2002-09-13 09:16:06 +00:00
Eric Anholt
ea3796796a
Fix an i830/i845 test that shouldn't get hit in normal use and remove a printf.
...
Submitted by: David Dawes <dawes@XFree86.Org>
2002-09-13 04:17:28 +00:00
Joerg Wunsch
9a5e3ddb2d
Pass the physical instead of the logical block number in
...
bp->bio_pblkno. Otherwise, all formats not using 512 byte
physical sectors got screwed.
2002-09-12 20:53:50 +00:00
Søren Schmidt
a7089c2c4c
Add preliminary mostly untested support for the Silicon Image Sil680 chip.
2002-09-12 15:25:59 +00:00
Thomas Quinot
9bdb4a0a3f
Change a couple of splcam() calls that do not make sense in atapi-cam
...
(what we want to mask is the ATA interrupts, which run at level splbio),
and add interrupt masking around the statement that modifies the
request queue for a SIM.
This resolves problems reported by users under heavy ATAPI load.
Reviewed by: roberto
2002-09-12 15:15:33 +00:00
Søren Schmidt
35ca7a483a
Rearrange where to get the ATAPI magic sequence.
...
Submitted by: Benjamin Close <cisbjc@cs.unisa.edu.au>
2002-09-12 14:32:33 +00:00
Søren Schmidt
175f0ce5a4
Wait for drive to become ready if its in progress of loading..
...
Based on patch in PR-42659, but done somewhat differently.
PR: 42659
2002-09-12 13:55:24 +00:00
Søren Schmidt
9d54441f7f
Dont hang in atprq on poll_dsc command.
...
This is a temporary fix until I get proper locking done.
Submitted by: iedowse@maths.tcd.ie
2002-09-12 13:53:33 +00:00
Eric Anholt
3080733f2e
Add AGP support for Intel i830M and i845 thanks to patches from moto kawasaki
...
<kawasaki@mbg.sphere.ne.jp> and David Dawes <dawes@XFree86.org>.
2002-09-12 04:23:18 +00:00
Andrew R. Reiter
b2c6ac5b2b
- Forgot to remove cardattached
declaration in revision 1.22.
2002-09-10 16:50:06 +00:00
Warner Losh
b5b0634309
reprobe not needed here either
2002-09-10 06:37:56 +00:00
Warner Losh
17a39a01e9
Remove more bogus reprobe code. I don't think it is needed here either.
2002-09-10 06:37:02 +00:00
Warner Losh
2d7a3e94bd
o Dike out the bogus reprobe stuff. It was getting in the way of newbus' own
...
reprobe code working. This bogusness was thrust upon me.
o Don't delete the device if no drivers attach. I had thrust this bogusness
upon others.
These two changes make kldload of a pccard driver work again.
2002-09-10 06:32:18 +00:00
Warner Losh
2b8356955f
regen for 1.34
2002-09-10 06:29:50 +00:00
Warner Losh
0988c335ed
Add ARGOSY SP320
...
cis submitted by: phk
2002-09-10 06:29:09 +00:00
Bernd Walter
82026026e0
add missing \n to printf
...
Approved by: gallatin (mentor)
2002-09-09 17:39:48 +00:00
John Polstra
b1265c1a98
Add support for the BCM5703x chips. I do not have one of these
...
cards to test; however the submitter reports that this patch works
with the on-board interface on the IBM x235 server.
Submitted by: Jung-uk Kim <jkim@niksun.com>
MFC after: 1 month
2002-09-08 19:12:02 +00:00
Jake Burkholder
c0d676c068
Make this driver work a whole lot better.
...
- Get the initial mode from the prom settings and don't clobber the mode
on open.
- Copy output into an internal ring buffer instead of accessing the tty
outq directly in the interrupt handler. This fixes a problem where
garbage would show up in the output stream.
- Reset the console port completely and reprogram all the parameters
before enabling it. This fixes seemingly random hangs on startup
when using a fast interrupt handler.
- Add minimal locking in place of spls.
- Remove dead code and minor cleanups.
2002-09-08 04:45:16 +00:00
Matt Jacob
e47ffe1fd4
The size argument to snprintf does not have to be backed off by one
...
to account for a NULL byte.
Submitted by: Jacques A. Vidrine <nectar@celabo.org>
2002-09-07 16:12:52 +00:00
John Baldwin
38906aed9a
Export pcib_attach() as a "protected" for use in subclasses of the PCI-PCI
...
bridge driver.
2002-09-06 22:14:00 +00:00
Brooks Davis
6f9fe1334f
Don't include "bpf.h" when compiling on FreeBSD. We always compile in
...
bpf support these days.
2002-09-06 20:07:50 +00:00
Matt Jacob
99b57e408b
Remove STRNCAT (==>strncat) usage. Apparently I never read the man
...
page correctly and it wasn't doing what I thought it was.
Noticed by: Brooks Davis <brooks@one-eyed-alien.net>
2002-09-06 18:32:16 +00:00
Matt Jacob
ee76282ef5
Tsk. Now that we're not using our own locks, we have to remember
...
to grab Giant in isp_kthread so that msleep is *happy* that there's
no lock being passed to it (as tsleep turns out to be...)
2002-09-06 18:20:59 +00:00
John Baldwin
eeb6dba253
Attach ACPI children a bit later in attach(), specifically after performing
...
any machine dependent initialization. This allows the MD code to set the
interrupt routing model so that PCI interrupts are routed correctly when
using an APIC or SAPIC for example.
2002-09-06 17:01:06 +00:00
John Baldwin
cea0a89545
Prefer the physical bus number of the PCI bus as the unit of the pciX
...
device created.
2002-09-06 16:09:07 +00:00
John Baldwin
da14ac9fce
Add a helper routine acpi_SetIntrModel() to call the _PIC method to set
...
the interrupt model in use so that ACPI can properly route interrupts for
machines using APIC's or SAPIC's.
2002-09-06 16:08:08 +00:00
John Baldwin
c6a121ab5e
Make the printf messages when routing interrupts more consistent in the
...
various PCI bridge drivers.
2002-09-05 17:08:35 +00:00
Poul-Henning Kamp
1f02c343e8
Don't let children attach fast interrupts if the parent interrupt is normal.
...
Submitted by: bde
2002-09-04 18:50:40 +00:00
Mark Murray
3ecba1c115
Make consistent; turn spaces into tabs where there is a mixture.
2002-09-04 18:14:17 +00:00
Poul-Henning Kamp
d3c10e33e6
Bring back the PUC_FASTINTR option, and implement it correctly so that
...
child devices also know if they are fast or normal.
Requested by: bde
2002-09-04 15:29:04 +00:00
Scott Long
5ffa65f9ab
Sigh. The fix to the suspend code wasn't complete, since the resume
...
code was broken in the same way.
Submitted by: co9@xs4all.nl
MFC after: 3 days
2002-09-04 08:13:36 +00:00
Warner Losh
912f17daa2
More in the continuing saga of phk vs his strange serial card.
...
In this installment, we learn that it is bad to access registers that
are only defined for mfc cards in the interrupt handler when we do not
in fact have a mfc card. For MFC cards, we'll only call the ISR if
the this card interrupted bit is set. For non mfc cards (which are
basically 90% of pccards in use), we always call the ISR and avoid
touching the suspect registers. We always pacify the bit in the MFC
case on the off chance that will help in the itnerrupt handler not
being registed.
2002-09-04 06:53:37 +00:00
John Baldwin
dd699396ce
Fix up a comment.
2002-09-04 03:53:21 +00:00
John Baldwin
1d62131385
- Make pci_load_vendor_data() static and do it during MOD_LOAD instead of
...
when the first PCI bus attaches.
- Create /dev/pci during MOD_LOAD as well.
- Destroy /dev/pci during MOD_UNLOAD (not that you can kldunload pci, but
might as well get the code right)
2002-09-04 03:13:16 +00:00
John Baldwin
9ed79ecadf
Use resource_list_print_types() instead of duplicating the code.
2002-09-04 03:11:20 +00:00
Poul-Henning Kamp
b4dde36292
Remove a debug printf.
...
Correctly identify the ARGOSY SP320 dual port serial PCMCIA card.
2002-09-03 11:31:34 +00:00
Poul-Henning Kamp
13c33c582a
Drop another cookie to wet Warners appetite:
...
We need to call the drivers interrupt function even though the card is not
multifunction.
2002-09-03 11:24:25 +00:00
Poul-Henning Kamp
b5518fb0cf
Fix interrupt registration:
...
PUC devices live on pccard or pci so INTR_FAST is never really an option.
Don't try to register the interrupt as fast and don't allow the children
to do so either.
2002-09-03 11:22:13 +00:00
Poul-Henning Kamp
ed4208e931
Style: fix a function whitespace stuff-up. Remove a debugging printf.
2002-09-03 11:19:44 +00:00