Olivier Houchard
26532c3696
Remove the remaining calls to free(), they are not needed anymore now
...
device_get_softc() is used.
2002-11-14 19:54:33 +00:00
Maxime Henrion
b2423a5f88
Fix printf() format errors.
...
Reviewed by: imp
2002-11-14 14:02:32 +00:00
Maxime Henrion
cb25d85fc7
Pass correct parameters to bus_space_barrier() instead of 0
...
so that this code compiles on alpha.
2002-11-14 13:25:53 +00:00
Warner Losh
b20360c8e6
MFp4:
...
o Add support for bus_child_present call by implementing that method for cbb.
2002-11-14 05:20:39 +00:00
Warner Losh
dfe5056e80
MFp4:
...
o Make this code a little easier to understand by using simpler if
statements, but nesting them.
2002-11-14 05:18:53 +00:00
Warner Losh
f02993557a
MFp4:
...
o Use 32-bit unsigned types for things that really are 32-bit quantities,
not bus_addr_t. These are not the same as a bus_addr_t, so don't use
that here. Harmless on i386, introduced problems on sparc64.
Submitted by: jhb
2002-11-14 05:15:50 +00:00
Warner Losh
41e6d507ba
Remove an impossible condition. pf->dev is always non-null here.
2002-11-14 05:13:52 +00:00
Warner Losh
d0c36f94f7
MFp4:
...
o Add a diagnostic for an 'impossible' condition.
o Collapse common code.
2002-11-14 05:12:02 +00:00
Warner Losh
01f2fb65c3
minor correction to comment
2002-11-14 05:10:16 +00:00
Warner Losh
21ac1e0615
Add second and thrid bus-toaster IDs
2002-11-14 05:08:22 +00:00
Warner Losh
c4d9c284e2
regen to 1.37
2002-11-14 05:07:20 +00:00
Warner Losh
637f9a2e17
Add a third aic-based bustoaster.
2002-11-14 05:06:25 +00:00
Scott Long
9fb92b64ad
When parsing the CIS, if a BAR tuple is encountered, enable the corresponding
...
bit in the PCI command register for the device. Otherwise, device drivers
that look at this register to see which types of BARs are usable will think
that none of them are.
This allows my Adaptec 1480A cardbus card to finally work.
Reviewed by: imp
2002-11-13 22:53:48 +00:00
Maxime Henrion
7617255f4a
Remove a bunch of #include "opt_pci.h".
2002-11-13 17:40:15 +00:00
Maxime Henrion
d541eb80c6
Unbreak kernel build.
...
Submitted by: Hiten Pandya <hiten@angelica.unixdaemons.com>
2002-11-13 17:34:12 +00:00
Matthew N. Dodd
1c54ff3315
Convert kernel compile option PCI_ALLOW_UNSUPPORTED_IO_RANGE to
...
a loader tunable hw.pci.allow_unsupported_io_range.
Submitted by: Hiten Pandya <hiten@angelica.unixdaemons.com>
Approved by: re (murray)
2002-11-13 09:42:25 +00:00
Matthew N. Dodd
04211a9bcc
Staticize local variable.
...
Submitted by: Hiten Pandya <hiten@angelica.unixdaemons.com>
Obtained from: re (murray)
2002-11-13 09:40:09 +00:00
Hidetoshi Shimokawa
d6ec58858c
- Add fwmem_xfer_req() and use this in other functions.
2002-11-12 17:19:21 +00:00
Hidetoshi Shimokawa
8687c4fbcd
- Remove unused code.
...
- Fix style.
2002-11-12 17:16:20 +00:00
Hidetoshi Shimokawa
c57d646f99
fix wording.
2002-11-12 17:11:32 +00:00
Hidetoshi Shimokawa
17821895ee
Split userland services to fwdev.c.
2002-11-12 15:22:19 +00:00
Hidetoshi Shimokawa
f90ce7b125
Use struct fw_device in fwmem.c
...
- specify fwmem target by EUI64.
- fw_noderesolve returns struct fw_device rather than dst.
- include struct firewire_comm in struct fw_device.
2002-11-12 13:49:17 +00:00
Hidetoshi Shimokawa
5e2a411f2d
Add a prototype for suspend/resume.
2002-11-12 13:46:09 +00:00
Hidetoshi Shimokawa
98e6731b51
Change interface of fwmem_read_*() functions to be usable from other part
...
of the module.
2002-11-12 11:15:01 +00:00
Hidetoshi Shimokawa
c3b0952272
Change interface of fwmem_read_*() functions to be usable from other part
...
of the module.
2002-11-12 11:08:50 +00:00
Scott Long
2de8725950
Use better return types and a couple of casts to eliminate warnings on
...
alpha. This will take the file out of sync with the private version
that we maintain, but alpha tinderbox has been broken for too long.
Tested on: i386, sparc64, alpha
2002-11-12 10:22:49 +00:00
Hidetoshi Shimokawa
8da326fd37
- clean up
2002-11-12 10:02:50 +00:00
Scott Long
1e06ae9969
Fix two typos from the previous commit. This code is definitely infectious.
2002-11-12 09:45:59 +00:00
Scott Long
e6e272b905
Step one of cleaning and fixing cardbus:
...
- Fix some especially bad style in the CIS BAR tuple parsing code.
- activate Option ROMS correctly.
- de-obfuscate the Option ROM image selection code.
- Fix mis-interpretation of the PCI spec that prevented Option ROMs whose
CIS section wasn't in the first image from working.
- Fix mis-interpretation of the PCI spec that prevented CIS's mapped into
MEMIO space from working at all.
- Reject invalid CIS pointers.
Reviewed by: imp
2002-11-12 08:23:27 +00:00
Hidetoshi Shimokawa
c572b81055
- Remove unused code.
...
- Style fixes.
2002-11-12 05:52:01 +00:00
Hidetoshi Shimokawa
783058fa0d
Restrict process count in fwohci_arcv() and fwohci_ircv().
2002-11-12 04:54:30 +00:00
Maxime Henrion
2ac8c61ac4
Capitalize the first letter of device descriptions
...
for consistency with the rest of the drivers.
2002-11-11 15:26:08 +00:00
Thomas Moestl
20207b60a8
Declare the snp ioctl()s to work on udev_t, since that is what they
...
really do and dev_t is defined differently in kernel and userland.
Return a correctly formed udev from SNPGTTY.
Reviewed by: dd
2002-11-11 10:45:31 +00:00
Maxime Henrion
aa26768242
Warning fixes.
2002-11-11 10:28:44 +00:00
Maxime Henrion
97be736aca
Warning fix.
2002-11-11 10:17:01 +00:00
Matthew N. Dodd
f5464126bb
Replace {disable,enable}_intr() with critical_{enter,exit}().
2002-11-10 03:45:49 +00:00
Alfred Perlstein
29f194457c
Fix instances of macros with improperly parenthasized arguments.
...
Verified by: md5
2002-11-09 12:55:07 +00:00
John Baldwin
4ed3ce72b0
Fix some sizeof(int) != sizeof(void *) warnings.
2002-11-08 21:30:26 +00:00
John Baldwin
e068a87835
- Move opt_fb.h earlier so it covers included headers.
...
- Update cdevsw. Block majors are out, kqfilters are in.
- No need to bzero softc's that we get from new-bus. They come that way to
begin with.
2002-11-08 21:10:53 +00:00
John Baldwin
7b3ac8969c
Move include of opt_fb.h earlier so that FB_INSTALL_CDEV is defined in
...
included headers.
2002-11-08 21:04:44 +00:00
John Baldwin
3f57c87ebf
Fix printf warnings with %j and uintmax_t.
2002-11-08 20:59:23 +00:00
John Baldwin
108a50d232
Use critical_enter/exit instead of disable/enable_intr to make this
...
driver more portable.
2002-11-08 18:32:57 +00:00
John Baldwin
672cc99ed3
- Change the ATM stack functions to use intptr_t instead of int for opaque
...
arguments.
- Fix a few other places that assumed that sizeof(int) == sizeof(void *).
Reviewed by: mdodd
2002-11-08 18:27:30 +00:00
Prafulla Deuskar
1d966d27b1
- Set RS (Report Status) bit on all descriptors of a packet instead of just the last one.
...
- Set RDTR to zero by default instead of 28.
- Fixed a problem with TX hangs with jumbo frames when number of fragments in the mbuf chain
is large.
- Added support for 82540EP based cards.
MFC after: 3 days
2002-11-08 18:14:17 +00:00
John Baldwin
f47789c828
Use %z to print a size_t value.
2002-11-08 14:58:35 +00:00
Michael Reifenberger
ad59e7ecbd
Reviewed by: n_hibma
...
MFC after: 2 weeks
fix XPT_CALC_GEOMETRY to fill in some reasonable values.
Inspired by aic/sbp.
2002-11-08 07:57:42 +00:00
John Baldwin
f544691671
- Use %p to print pointers instead of casting pointers to an int and using
...
0x%x.
- Add a cast to quiet a warning.
2002-11-07 22:25:13 +00:00
John Baldwin
482a5259ac
Use [u]intmax_t and %j instead of long long and %ll to better fix warnings
...
I fixed earlier.
Requested by: mux, jake
2002-11-07 22:23:46 +00:00
John Baldwin
7399a5ddd0
Make 'rclk' a uintptr_t to quiet warnings.
2002-11-07 22:22:10 +00:00
John Baldwin
d0ffe397df
Use %z and %j to quiet warnings.
2002-11-07 22:21:38 +00:00