John Baldwin
f371d460e6
Whitespace.
2002-10-16 19:11:59 +00:00
John Baldwin
fc0ea94a7d
Catch up to changes in acpivar.h to add support for using ACPI on
...
4-stable systems.
Sponsored by: The Weather Channel
2002-10-16 17:28:53 +00:00
John Baldwin
3a65df0084
struct timecounter is defined in sys/time.h on 4-stable.
...
Sponsored by: The Weather Channel
2002-10-16 17:27:40 +00:00
John Baldwin
0b1d1f1afb
- Include lock headers on current in this header instead of putting
...
#if's in all the other ACPI source files.
- Use splhigh() for the ACPI subsystem lock on 4-stable.
Sponsored by: The Weather Channel
2002-10-16 17:27:11 +00:00
John Baldwin
680717ff9e
- In AcpiOsGetThreadId(), allow for curproc to be NULL on 4-stable systems.
...
In that case use proc0's pid to return the thread ID.
- For 4-stable, use the generic swi taskqueue for ACPI events rather than
implementing our own.
Sponsored by: The Weather Channel
2002-10-16 17:25:29 +00:00
John Baldwin
b60bd0c129
Implement the internal locks of an ACPI semaphore with splhigh() on
...
4-stable. -current uses a mutex for this purpose.
Sponsored by: The Weather Channel
2002-10-16 17:23:34 +00:00
Sam Leffler
0f0d411b6c
whitespace/indentation fix from phk
2002-10-16 17:07:41 +00:00
Mitsuru IWASAKI
93569b6b3a
Fix a possible bug about freeing non-malloc'ed pointer.
...
Suggested by: jhb (in -current ML)
2002-10-16 15:42:27 +00:00
Mark Murray
f544a52873
Module-ize the 'core' crypto stuff. This may still need to be compiled
...
into the kernel by default (if required), but other modules can now
depend() on this.
Fix inter-module dependancy.
Earlier version OK'ed by: sam
2002-10-16 14:31:34 +00:00
Robert Drehmel
4bcea0f89c
Cast the first argument to bzero() to `void *' after casting it to
...
`uintptr_t' to pass it as the type bzero() expects.
2002-10-16 11:15:35 +00:00
Poul-Henning Kamp
3412120f03
Be consistent about funtions being static.
...
Spotte by: FlexeLint.
2002-10-16 10:16:17 +00:00
Poul-Henning Kamp
88647b6de5
Be consistent about functions being static.
...
Properly put macro args in ().
Spotted by: FlexeLint.
2002-10-16 09:14:59 +00:00
Poul-Henning Kamp
2c876e15c8
Be consistent about functions being static.
...
Spotted by: FlexeLint.
2002-10-16 09:04:52 +00:00
Poul-Henning Kamp
031fd299d7
Be consistent about functions being static.
...
Spotted by: FlexeLint.
2002-10-16 08:48:39 +00:00
Poul-Henning Kamp
4d8d520f17
Fix misindentation.
...
Spotted by: FlexeLint
2002-10-16 08:45:34 +00:00
Justin T. Gibbs
ccbe423c8f
Never allow memory mapped I/O in PCI-X mode on controllers that
...
do not support that configuration. This should fix problems with
embedded 7902 controllers running in PCI-X mode.
2002-10-16 02:59:03 +00:00
Sam Leffler
5d84645305
Replace aux mbufs with packet tags:
...
o instead of a list of mbufs use a list of m_tag structures a la openbsd
o for netgraph et. al. extend the stock openbsd m_tag to include a 32-bit
ABI/module number cookie
o for openbsd compatibility define a well-known cookie MTAG_ABI_COMPAT and
use this in defining openbsd-compatible m_tag_find and m_tag_get routines
o rewrite KAME use of aux mbufs in terms of packet tags
o eliminate the most heavily used aux mbufs by adding an additional struct
inpcb parameter to ip_output and ip6_output to allow the IPsec code to
locate the security policy to apply to outbound packets
o bump __FreeBSD_version so code can be conditionalized
o fixup ipfilter's call to ip_output based on __FreeBSD_version
Reviewed by: julian, luigi (silent), -arch, -net, darren
Approved by: julian, silence from everyone else
Obtained from: openbsd (mostly)
MFC after: 1 month
2002-10-16 01:54:46 +00:00
Sam Leffler
87cb581aa4
missed additional callout that can run w/o Giant locked
2002-10-15 23:25:56 +00:00
Poul-Henning Kamp
fb9da1ef43
Include "opt_kbd.h" since certain structures size depend on the value
...
of KBDIO_DEBUG which may be defined in the kernel config (as it is in NOTES).
This kind of bug is a _really_ horribly thing as we end up with one bit
of code thinking a particular structure is 136 bytes and another that it
is only 112 bytes.
Ideally all places would remember to #include the right "opt_foo.h" file,
but I think in practice file containing the variable sized struct should
#include it explicitly as a precaution.
Detected by: FlexeLint
2002-10-15 21:35:01 +00:00
Marcel Moolenaar
18e0cd7dde
Fix previous commit: Don't cast integral types to pointers to
...
print them with %p. Cast to unsigned long and print with %#lx.
Discussed with: bde
2002-10-15 01:50:09 +00:00
Alfred Perlstein
9c1c2e9924
Put function return types on a line by themselves.
...
Cleanup my earlier de-__P sweep and remove whitespace between function
names and paramters.
2002-10-14 22:31:52 +00:00
Matt Jacob
413f5a8add
LINT related fixes (as noticed by bde)
2002-10-14 22:13:51 +00:00
John Baldwin
83a20b6e3e
This file doesn't need opt_bus.h.
2002-10-14 19:11:19 +00:00
Olivier Houchard
89ca562efb
Fix support for the ALi M5451 (rev 0.2) chip.
...
Reviewed by: orion, mux
Approved by: mux (mentor)
MFC after: 1 week
2002-10-14 11:47:37 +00:00
Warner Losh
aa23e9c476
o Comment out the symbol download code for 4.x.
...
o Add hooks for doing power management of the output signal.
o Minor hacks to make flexlint happy wrt staticness of functions.
2002-10-14 01:59:57 +00:00
Olivier Houchard
d6ca3de751
Import of the trm(4) driver (for Tekram DC395U/UW/F and DC315U SCSI adapters).
...
Reviewed by: mux, scottl
Approved by: mux, scottl
2002-10-13 18:32:39 +00:00
Jake Burkholder
81bb0b95b1
MODINFO_SIZE metadata has type size_t, not unsigned. This makes preloaded
...
md root work on sparc64.
2002-10-13 18:19:22 +00:00
Marcel Moolenaar
a9945062b7
Make this compile on 64-bit architectures (e.g. ia64) by not assuming
...
pointers (but more precisely vm_offset_t) can be printed with %x. Use
%p instead and cast the argument to caddr_t.
2002-10-12 20:40:36 +00:00
Matt Jacob
2e6d3b4614
Know that a 10160 is the same as a 12160.
...
MFC after: 0 days
2002-10-12 00:12:31 +00:00
Warner Losh
41a0c1eedd
s/modunload/kldunload
2002-10-11 20:22:20 +00:00
Sam Leffler
526dee0415
No need to hold Giant will harvesting RNG data; change callout_init so
...
this no longer happens for callbacks.
2002-10-11 17:34:00 +00:00
Matt Jacob
f556e83b61
This should enable 10160 support. As best as I can tell, the same
...
f/w as 12160 is used, and otherwise, this is just a single channel
variant of the 10160.
MFC after: 0 days
2002-10-11 17:28:01 +00:00
Matt Jacob
306a209024
Fix the code so that it no longer on alpha refers to the now nonexistent
...
pci_cvt_to_bwx.
This doesn't necessarily make bge(4) now actually *work* on an alpha.
It loads, configures, and then about 30 seconds later, my XP1000 hard
freezes. But, hey, it's a start.
Obtained from: gallatin@freebsd.org
2002-10-11 17:18:54 +00:00
Warner Losh
43924d99c2
add some devices from NetBSD
2002-10-11 07:03:09 +00:00
Warner Losh
5c71502dad
Some renamings from pccarddevs
...
Add Linksys WCF11
Bay eMobility 11B
2002-10-11 07:02:31 +00:00
Warner Losh
7cb84123d4
sync to 1.36 of pccarddevs
2002-10-11 07:00:53 +00:00
Warner Losh
1ac1b586c1
Merge from NetBSD plus diff reduction to netbsd's pcmciadevs 1.177 file:
...
o NETGEAR2 -> NETGEAR_2
o PLANEX2 -> PLANEX_2
o ACTIONTEC HWC01170 -> ACTIONTEC PRISM
o linksys iwn2 -> iwn3
o Add: Ositech, DLINK_3, BAY emobility, buffalo lpc3_clt, netgear fa410TX.
dynalink accton EN2216, corega ether II PCC TD, dlink dfe670TXD,
dynalink l10c
Obtained from: NetBSD
2002-10-11 07:00:30 +00:00
Warner Losh
82ddfdef07
Add Planex GWNS11H
...
Submitted by: hanai-san
2002-10-11 05:43:38 +00:00
Warner Losh
26bb14c4bb
sync to 1.35 of pccarddevs
2002-10-11 05:40:45 +00:00
Warner Losh
5a702a282b
Add a new NewMedia BUSTOASTER that I bought on ebay (sadly w/o scsi dongle).
...
Add PLANEX GWNS11H submitted by hanai-san.
2002-10-11 05:40:13 +00:00
Warner Losh
93642ba9bf
o Set CBB_CARD_OK just before CARD_ATTACH_CARD. If ATTACH_CARD fails, then
...
clear the bit. This allows ata driver to attach its children because
it needs the interrupts enabled to succeed.
Submitted by: iwasaki-san
o Spell CardBus as CardBus, not Cardbus or CardBUS while I'm here.
2002-10-11 04:30:59 +00:00
Matt Jacob
63872bc9c5
Get the most recent 2300 f/w that's on the QLogic intranet- fixes lots
...
of buglets and quite a few bugs.
MFC after: 1 day
2002-10-10 17:30:06 +00:00
Matt Jacob
41ed683e13
From PHK's flex tool- we can get -1 returned from xpt_path_target_id,
...
so don't index off of it.
MFC after: 1 day
2002-10-10 17:29:05 +00:00
John Baldwin
6b4d1b08a2
Use d_thread_t for cdevsw functions instead of struct thread * so that it
...
is easier to share this code with 4-stable.
2002-10-09 20:39:26 +00:00
John Baldwin
87e5d36101
Include <dev/acpica/acpivar.h> instead of <acpica/acpivar.h> like all the
...
other sys/dev/acpica files.
2002-10-09 20:38:21 +00:00
Peter Wemm
ba3d594ddc
Fix build on alpha. It used to case an int to a pointer in order to do
...
pointer arithmetic. Detour via uintptr_t, since we're generating an
offset not dereferencing them.
2002-10-09 09:30:57 +00:00
Peter Wemm
16c1138c89
Change BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in the
...
'int nsegments' argument to bus_dma_tag_create(). ~0ul does not fit in
an int on machines with 64 bit longs.
2002-10-09 08:54:32 +00:00
Peter Wemm
bf579f2321
Change BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in the
...
'int nsegments' argument to bus_dma_tag_create(). ~0ul does not fit in
an int.
2002-10-09 08:50:26 +00:00
Søren Schmidt
c13beb0171
Fix for the panic when using a Promise TX2.
...
The problem is that the code does a check for the granparent of
the Promise chip, if this is a bridge of the right type, we have
a TX4 on our hands, and need to handle that ones "issues".
Now the grandparent check cause subtle bugs in the newbus system,
mainly that pci_get_devid doesn't return an error value.
This patch works around the issue by using BUS_READ_IVAR() instead.
2002-10-08 18:25:10 +00:00
John Baldwin
422971d7d9
Don't panic for a bad ivar request, just return ENOENT.
2002-10-08 15:44:35 +00:00