Commit Graph

131 Commits

Author SHA1 Message Date
tron fdab6cb011 Make this compile without ACPI_DEBUG again. 2004-04-25 11:25:35 +00:00
christos db3f39e1e1 make this compile with ACPI_DEBUG again. 2004-04-25 07:55:06 +00:00
itojun 6123043789 pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region
2004-04-23 21:13:05 +00:00
skd 3d1c65c141 1) Skip over bogus device nodes, prevents a panic in pci_make_tag.
2) Clarify a printf.
2004-04-22 18:01:47 +00:00
fvdl 9ad68fe184 Moved here from arch/amd64/pci 2004-04-18 18:34:22 +00:00
kochi 27435b5d7c use designated initializer for struct pic initializers.
just for readability.
2004-04-10 14:49:55 +00:00
kochi 743758bd35 whitespace nit 2004-04-10 14:17:21 +00:00
drochner cf8b697c65 remove license clauses 3 and 4 from my cpoyright notices 2004-03-24 17:06:57 +00:00
martin f87286c8e4 Make it compile (int -> ACPI_INTEGER) 2004-03-24 09:14:58 +00:00
kochi 2b5897d796 Don't use ACPI CA internal functions 2004-03-23 14:07:42 +00:00
bjh21 dff5222d3a Abstract the interface between pckbc(4), and the pckbd(4) and pms(4)
drivers that attach to it.  This allows for other host interface chips
that use the same keyboards and mice, such as the ones in the ARM
IOMD20, ARM7500, and SA-1111.  The PC-compatible driver is still
called pckbc(4), and the new abstraction layer is "pckbport", so the
child devices have moved from sys/dev/pckbc to sys/dev/pckbport, which
also contains some code shared between all host controllers.  To avoid
incompatibility, pckbdreg.h is still installed in
/usr/include/dev/pckbc.

In theory, this shouldn't cause any behavioural changes in the drivers
concerned.  Thy just use rather more function pointers than before.  Tested
on i386 and (with a new host driver) acorn32.  Compiled on several other
affected architectures.
2004-03-13 17:31:33 +00:00
dbj 1ea0a01420 fix comment about spllowersoftclock 2004-03-04 19:10:10 +00:00
yamt 2becafcd79 don't assume that bus on intr_extra_buses has non-null pci_bridge_tag.
pchb's second bus doesn't have it.

ok'ed by Frank van der Linden.
2004-02-20 18:04:06 +00:00
drochner fdeec1f029 define AMD64's CPUID_NOX bit (I'm curious where Intel puts this bit in the
ia32 extension just announced)
XXX there should be a better separation between generic and vendor
specific feature flags
2004-02-19 17:09:39 +00:00
wiz d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
soren 535d4588f0 Add Pentium M MSR definitions from Michael Eriksson. 2004-02-02 08:28:00 +00:00
yamt d113fe51e0 spllower: lower spl before checking pending interrupts.
otherwise, interrupts happened immediately after the check might be left
pending for a while. (until the next tick in the worse case.)
2004-01-14 11:41:27 +00:00
yamt 7246e2cc80 issue memory read barrier for BUS_DMASYNC_POSTREAD operation.
PR/21665 from Stephan Uphoff.
2004-01-14 11:31:55 +00:00
fvdl 142645a06a This file is dead. It has ceased to be. It has gone to meet it's maker. It
is a late file.

Any rumours of it pining for the fjords are totally unsubstantiated.
2003-11-29 00:27:58 +00:00
jhawk 0769141e39 Manually moved from Attic/ in the repository since cvs failed to do so. 2003-11-28 23:47:42 +00:00
fvdl 4c59345a6c Set the bridge tag correctly when adding an extra PCI bus. 2003-11-17 22:20:00 +00:00
fvdl 6cdccae32c Remove leftover debugging printf. 2003-11-13 23:00:54 +00:00
fvdl 1eb5f3a2f2 intr_find_pcibridge returns 0 or error, not < 0. 2003-11-06 23:04:03 +00:00
jdolecek 467746e275 avoid strong words; use 'screw' instead 2003-11-01 17:00:49 +00:00
fvdl ab3d5bdcea Catch up with the new acpica code. 2003-10-31 20:56:55 +00:00
fvdl 7d342b5852 * keep track of PCI buses that aren't known by firmware, but are found
by NetBSD
* use this info in in intr_find_mpmapping
* get rid of the last argument to intr_find_mpmapping, it was redundant
2003-10-30 21:19:54 +00:00
mycroft e24c0c7dfc Move a panic() to a different location, and eliminate a bogus initializer. 2003-10-29 03:40:56 +00:00
mycroft f6f24ead9c In _bus_dma_uiomove():
* Don't punt after the first iov in the UIO_SYSSPACE case.  Not that this ever
  happens in practice right now.
* If we get through the loop, error==0 by definition, so just return 0.
* Eliminate bogus initializer.
2003-10-28 22:49:51 +00:00
kleink 91af1eaa96 #define __HAVE_LONG_DOUBLE on platforms which implement a distinct
`long double' type.
2003-10-28 00:55:28 +00:00
junyoung 8f1ba94956 Nuke __P(). 2003-10-27 13:43:48 +00:00
lukem b81744894f appease gcc's uninitialised variable detection 2003-10-27 03:51:35 +00:00
kleink 964d6747b5 Err, rename some members added in previous to make them reflect their
semantics better.
2003-10-27 01:11:46 +00:00
kleink b37192f049 For convenient use in libc, add unions of the C floating types and their
corresponding structure definitions.
2003-10-26 21:46:46 +00:00
kleink 95971b8759 Correct the position of the QUIETNAN bit. 2003-10-26 20:59:51 +00:00
kleink a3fabb9e7f Use <sys/ieee754.h> where applicable. 2003-10-26 20:55:30 +00:00
yamt bc075cd173 use ffs() rather than handcrafted one for ipi bit search. 2003-10-26 11:30:42 +00:00
yamt 9be92e2eef issue PAUSE in the debug version of __cpu_simple_lock as well. 2003-10-26 11:28:21 +00:00
yamt ab51be8e72 define SPINLOCK_SPIN_HOOK to let LK_SPIN lockmgr locks call x86_pause. 2003-10-26 11:15:16 +00:00
kleink a1fdc1db7a Reflect the explicit integer bit here as well. 2003-10-25 21:31:25 +00:00
christos e5d9888ff1 Fix uninitialized variable warning 2003-10-25 18:39:40 +00:00
kleink 56062be225 Make ieee_ext match reality, and add a note about its ABI-specific
tail padding.
2003-10-23 23:28:29 +00:00
kleink 422697679e * Move the definitions for types other than single-precision and double-
precision back to machine-dependent headers.  C99 has no strict
  requirement which, if any, extended-precision type `long double' must
  match, and even between 80-bit formats there are differences in
  implementation (m68k vs. x86).
* On arm, consider __VFP_FP__.
2003-10-23 23:26:06 +00:00
kleink 5d1a2f48d2 Use a common <machine/math.h> for amd64 and i386. 2003-10-22 11:54:23 +00:00
fvdl eee926f0a9 Only declare intr_scan_bus if NIOAPIC > 0. 2003-10-22 01:53:49 +00:00
fvdl e74e8c0c71 Correctly walk up the PCI bus tree to find an interrupt match with
a swizzled pin.
2003-10-21 23:25:48 +00:00
fvdl 80cec054e5 If a bus has not been configured by MPBIOS/ACPI, and the attach hook
for it is called, mark it as configured.
2003-10-21 23:22:52 +00:00
fvdl 6a6db3cbd9 Add hooks and structures to allow the MP table intr mapping code a
better shot at finding a mapping. For PCI interrupts, if a bus
has no mappings, try its parent, with the swizzled pin, and the
bridge's device number.
2003-10-16 22:56:29 +00:00
tron 676596e33a Fix build problem when MPACPI is used without ioapic as proposed by
Quentin Garnier on current-users@NetBSD.org.
2003-10-10 20:16:54 +00:00
fvdl 0a79ef3086 Allow probing of CPUs only by ACPI, so that MPBIOS can still do interrupt
mapping should ACPI have a quirk. From Christos. One change by me: make
sure that lapic_boot_init doesn't get called twice, otherwise the
cpu_info entry for the CPU with id 0 gets zapped.
2003-10-09 16:25:16 +00:00
bouyer 83af294c93 pciide_machdep.c depends on pciide_common, not pciide.
Pointed out and fix tested by Marc Recht.
2003-10-08 17:29:59 +00:00