Commit Graph

79647 Commits

Author SHA1 Message Date
kochi 8b4a469cbc including acpi_madt.h is not necessary 2006-02-16 10:28:01 +00:00
kochi 9fca0c53be define acpi_dbgr as static 2006-02-16 09:23:23 +00:00
kochi 7e7584688f define phys_wakeup as static 2006-02-16 09:22:51 +00:00
kochi fd13bfcc61 define acpi_intr_deferq as static 2006-02-16 09:22:16 +00:00
kochi dd74d9277b add some more Intel LPC controllers 2006-02-16 08:47:16 +00:00
kochi e94d605ca4 regen. 2006-02-16 08:39:27 +00:00
kochi 2bf87ae55f add two more ICH7-M LPC device ids from intel document
(Intel I/O Controller Hub 7 (ICH7) Family Specification Update)
2006-02-16 08:36:03 +00:00
kochi 92d51ace0f prototypes don't need argument names 2006-02-16 06:19:26 +00:00
kochi 539e1b8f22 use ACPI_FAILURE() macro instead of directly check AE_OK 2006-02-16 06:18:59 +00:00
mhitch dca4768842 Bad Jason! Fix interrupt event counter attach typo. Only the last interrupt
was getting an event counter, and none of the dec_6600 interrupts were
getting counted.
2006-02-16 04:48:50 +00:00
macallan 0d73c74b90 default to a black on white console, with green kernel output 2006-02-16 02:18:50 +00:00
macallan dfd5d19b24 bail out when trying to attach to something that's not the console.
Fixes problems with more than one graphics card. Since OF doesn't set up
any secondary graphics devices anyway we don't lose anything.
2006-02-16 02:15:29 +00:00
gdamore e5312db1b0 Reenable PCI on DBAU1500. May still be useful for PIO devices. Comments
in the config are left intact, though.
Add a PMAP-driven bus_space for access to upper memory, instead of using
wired entries.
Convert aupci to use said bus_space -- no measured performance impact.
2006-02-16 01:55:17 +00:00
gdamore 2d31c1c18a CPLD registers are 16-bits wide, not 32. 2006-02-16 01:52:57 +00:00
gdamore 982890b596 Add board reset logic. 2006-02-16 01:52:37 +00:00
gdamore 547601cc8e Remove useless extra assignment. 2006-02-16 01:50:19 +00:00
rpaulo 1a5af035b5 PR 32848: Nicolas Joly: typo 2006-02-16 01:08:09 +00:00
gavan 7600be39ae Compute the EEPROM checksum to determine the presence of valid EEPROM data.
If EEPROM data is invalid, allow a MD hook to supply EEPROM data instead.
2006-02-16 00:02:00 +00:00
manu 5e9b532be2 Add getcwd (for real this time), fix dup and dup2 2006-02-15 15:23:18 +00:00
yamt 9040ed946b - amap_copy: take a "flags" argument instead of booleans.
- add AMAP_COPY_NOMERGE flag, and use it for uvm_map_extract.
  PR/32806 from Julio M. Merino Vidal.
2006-02-15 14:06:45 +00:00
manu f806470fb3 - Move the BSD to Linux and Linux to BSD termio/termios conversion functions
to a header where they can be shared between COMPAT_LINUX and COMPAT_LINUX32
- Add termios ioctl emulation to COMPAT_LINUX32
- Add the getcwd system call to COMPAT_LINUX32/amd64

That makes Linux's bash working with COMPAT_LINUX32.
2006-02-15 09:31:17 +00:00
uwe c1da9d59ec Fix quoting for (commented out) KGDB_DEVNAME examples. 2006-02-15 01:16:19 +00:00
rpaulo 1152ca51d5 From FreeBSD:
In ipcomp6_input(), check 'md' not 'm' after a call to m_pulldown(): 'm'
    may be a stale pointer at this point, and we're interested in whether or
    not m_pulldown() failed.

    Noticed by:     Coverity Prevent analysis tool
2006-02-14 21:43:02 +00:00
bjh21 c92781b8e2 Don't access an LWP's struct lwp after we've called lwp_exit2() on it.
I'm not sure the new code is right, but it works, which is an improvement.
2006-02-14 16:41:21 +00:00
macallan b16c42a99d bzero() -> memset() 2006-02-14 16:02:00 +00:00
yamt f382834c1a share some code between uvmpd_scan_inactive and uvmpd_scan. 2006-02-14 15:06:27 +00:00
macallan e594a4142f do some extra initialization and zeroing, fixes odd problems on x86 2006-02-14 14:15:59 +00:00
gdamore 1ab242ab37 Oops. Hadn't saved file, so missed request for feedback in comment for
last commit (PCI being commented out).
2006-02-14 04:29:27 +00:00
gdamore ebbb314def Comment out PCI for DBAU1500, as it seems incredibly busted. Explanatory
comments are included.  Approved by simonb@
2006-02-14 04:26:59 +00:00
yamt 16f42c29a4 fix a compilation problem where PAGE_SHIFT is not a constant.
pointed by Chuck Silvers.
2006-02-14 02:28:21 +00:00
oster 99bb7dc022 RAIDframe was erroneously re-initializing the Parity Stripe Status
pool each time a new array was configured.  This causes grief
with things like 'vmstat -m' by causing it to loop.  Make RAIDframe
only initialize PSS bits once.

Pointed out by simonb@.  Fix tested by simonb@. Thanks!
2006-02-14 01:13:33 +00:00
riz a4163a9fe4 Not all chips supported by this driver use the same interrupt moderation
timer frequency; Take this into account.  Information gathered from
the sk98lin driver for Linux, from Marvell.

Also add sysctl support for changing the interrupt moderation timer at
runtime; each board is controlled independently.

Discussed on tech-net beginning in November 2005.
2006-02-14 00:19:17 +00:00
uwe c842fab210 Fix file comment to include the expansion for 'F' in "SCIF". 2006-02-14 00:02:03 +00:00
uwe 533115eb12 Define scif register base(s) and offsets.
Express old defines in terms of base + offset.
Use uintN_t.
2006-02-14 00:00:34 +00:00
uwe 7dea0a81b8 Move/merge common defintions out of ifdef. 2006-02-13 23:26:31 +00:00
simonb 34cdf29c15 If we get a master abort, reset the SPL before returning. 2006-02-13 22:57:52 +00:00
cdi 1a509d615a ANSIfy: u_intN_t -> uintN_t, remove __P(), fix function definitions. 2006-02-13 21:47:11 +00:00
uwe 50ea998c78 Move assignment out of conditional expression. 2006-02-13 16:35:57 +00:00
yamt e6e15660e2 remove an outdated comment. 2006-02-13 14:41:22 +00:00
martin 73bd099735 Protect parts inside #ifdef _LKM that are only supposed to be there
when building an LKM.
2006-02-13 14:25:05 +00:00
hamajima 9290fbe544 identify model from DeviceCfg register, and delete "options ARMADILLO210".
get DRAM information and boot argument from bootloader.
2006-02-13 12:24:21 +00:00
hamajima cff2b34165 add SYSCON DeviceCfg register. 2006-02-13 12:13:20 +00:00
gdamore 7d9a6498cf Do not reset GPIO2 block -- causes PCI reset. 2006-02-13 04:30:47 +00:00
gdamore de65dd41eb Add rgephy for RealTek GigE 2006-02-13 04:30:12 +00:00
gdamore 8ea5188929 Added board support for hard-reset (reboot) and power off. 2006-02-13 02:37:05 +00:00
gdamore 2bc42dde61 GPIO support for all supported Alchemy parts. 2006-02-13 00:09:15 +00:00
peter 57be7a5a81 Fix a typo, use uintN_t, use assigned variables, add newline to a printf. 2006-02-12 23:19:14 +00:00
macallan 53b4acd93d Add support for colour and virtual consoles 2006-02-12 21:00:46 +00:00
macallan 569533352e framework for generic virtual consoles 2006-02-12 20:55:35 +00:00
gdamore 1388c544a6 Add GPIO driver, and GPIO access functions for other subsystems. 2006-02-12 20:49:34 +00:00
tron cbb0e8c88b Share Intel hardware random number generator support between amd64 and
i386 port. This will benefit EM64T systems using Intel i9xx chipsets.
2006-02-12 18:16:01 +00:00
tron bc6a85f1e9 Add hardware RNG support for Intel i925X chipset. 2006-02-12 16:37:31 +00:00
tron 7e0f377097 Regen. 2006-02-12 16:36:58 +00:00
tron 50e5429967 Fix inconsistencies in names for components for recent Intel chipsets. 2006-02-12 16:35:20 +00:00
tron 0b49145263 Add hardware RNG support for Intel i945G/P and i955X chipsets. 2006-02-12 12:03:55 +00:00
tron 3ab60a2c88 Regen. 2006-02-12 11:54:00 +00:00
tron c72bdde37c Correct cut and paste error in last change. 2006-02-12 11:53:26 +00:00
tron 48465288bd Regen. 2006-02-12 11:51:23 +00:00
tron 4b13e8432a Add entries for Intel i955X chipset. 2006-02-12 11:51:07 +00:00
bjh21 24b46da494 Make Econet code compile again. 2006-02-12 10:32:46 +00:00
bjh21 22ce92c5a5 Make this compile again (change of signature for arcppopen() and arcppclose()). 2006-02-12 10:30:30 +00:00
yamt 62eb3a15e1 factor out swap clustering code. 2006-02-12 09:19:59 +00:00
yamt 2a89e06daa uvm_pageunwire: use uvm_pageactivate rather than a copy. 2006-02-12 09:19:27 +00:00
gdamore cf9fe31b7c Consistency wrt phys physical and KSEG1 addresses. 2006-02-12 06:43:03 +00:00
dogcow b3d46538fd add VFS_MAGICLINKS so things compile again. 2006-02-12 06:18:25 +00:00
uwe 2e71b70d1f While here, use uintN_t. 2006-02-12 02:30:55 +00:00
uwe c6474efc78 Revert changes made in 1.10. They should not be necessary (we are
doing a single word store).  I've been running my Jornada without them
for a very long time, but got no word from dreamcast folks.  Thanks to
Nick Hudson for testing it on dreamcast finally.
2006-02-12 02:23:03 +00:00
chs 899d1b31b2 convert "magiclinks" from a per-fs mount option to a system-wide sysctl.
as discussed on tech-kern quite some time ago.
2006-02-12 01:32:06 +00:00
chs 90eb347e9c increase NKMEMPAGES_MAX_DEFAULT to 1 GB.
this allows lots more memory to be used for amaps, etc.
2006-02-12 01:12:48 +00:00
christos f5e26caf24 new version from David Boggs. 2006-02-11 23:00:06 +00:00
cdi d50f0c6274 ANSIfication: u_intN_t -> uintN_t, use ANSI function declarations/definitions
instead of K&R ones.
2006-02-11 17:57:31 +00:00
jmmv 35c9bfb405 No need to install optstr.h. 2006-02-11 17:36:41 +00:00
rpaulo b3e804a9e9 PR 31304: Contribute to the random pool. From Rhialto. 2006-02-11 13:04:44 +00:00
yamt a3af4c1530 remove the following options. no objections on tech-kern@.
UVM_PAGER_INLINE
	UVM_AMAP_INLINE
	UVM_PAGE_INLINE
	UVM_MAP_INLINE
2006-02-11 12:45:07 +00:00
simonb 949d314e64 Const poisoning, fix shadow variable problem. 2006-02-11 02:19:31 +00:00
simonb 660e5df892 Const poisoning. 2006-02-11 02:19:06 +00:00
macallan 5093e77f22 uncomment audio at snapper. doh.
noticed by tonio
2006-02-10 20:59:33 +00:00
gdamore 8430838831 PCI_NETBSD_CONFIGURE should allocate (but not map) address space expansion
ROMS by default.   Full discussion at
http://mail-index.netbsd.org/tech-kern/2005/12/16/0023.html
Closes PR kern/32467
Reviewed by briggs@
2006-02-10 20:52:56 +00:00
gdamore ace199bd1e Reduce address space used by PCI.
Add definitions for PCMCIA addresses.
2006-02-10 20:49:14 +00:00
christos 2038078d40 fix compilation problems. 2006-02-10 20:38:54 +00:00
christos 0fa6ea2f2c PR/32794: Paul Shupak: Panic in wsmouse code.
Checking the number of events after you've trashed the stack is not very
useful. Instead, break out of the loop if we ran out, printing a message.
Also don't try to inject 0 events; reset our state instead. Maybe having
0 events should be a diagnostic printf at this point? Anyway it is not
nice having the kernel die because the mouse code got confused. Finally,
explain why the array of events is sized funny.
2006-02-10 17:33:01 +00:00
christos 6547cf74f3 make the include files usable from userland. 2006-02-10 16:00:02 +00:00
simonb 45da43de95 Fix bogus gcc uninitialised warnings - they're not needed for one of the
variables.
Update a comment to match changed code.
2006-02-10 02:15:37 +00:00
gdamore d7b576a512 Fix error calling interrupt too many times (found with vmstat -e).
Replace "&&" with "&" when doing bit mask operations.  Doh!
2006-02-10 00:56:41 +00:00
simonb 8b00a8c689 Make a note that some counters should be 64-bit as they wrap far to
quickly.
2006-02-10 00:53:04 +00:00
gdamore 07fe2e72a2 Add au_intr_enable() and au_intr_disable() API to allow for split interrupts
(e.g. PCMCIA leaves GPIO interrupt masked and reenables them soft interrupt.)
Add checks for masked interrupts before calling the handler.
When removing last interrupt handler, mask off interrupts completely using
MASK_CLEAR and WAKEUP_CLEAR.  Tested on dbau1500.
2006-02-10 00:22:42 +00:00
dogcow 663b29bb4a make linux emulation compile on i386 again. 2006-02-09 23:27:08 +00:00
kleink 3e3854b2d0 options<space><tab>name previous. 2006-02-09 20:13:43 +00:00
manu ee0c5b44de Add initial (but unfinished) COMPAT_LINUX32 for amd64. This is good enough so
that the i386 license manager part of amd64 version of Fluent works.

While I'm here, add SysV IPC to COMPAT_LINUX/amd64
2006-02-09 19:18:56 +00:00
gdamore 0cf592aa8a au_icu.c is in mips/ and should not depend on evbmips intr handler struct.
convert various u_int32_t to preferred uint32_t.
2006-02-09 18:03:12 +00:00
uwe 3c5e28322e pmap_extract: handle P1 and P2 (MMU bypass) addresses specially.
PMAP_MAP_POOLPAGE maps pa -> P1 va, so we must handle this case here.
PR port-sh3/26569 by Nick Hudson.
2006-02-09 10:08:32 +00:00
gdamore 0129c2494b Split out peripheral register defines from aureg.h. As discussed with
simonb@.
2006-02-09 03:14:31 +00:00
gdamore 24967001fb Remove if_aumac register defs, which were generally #ifdef'd out anyway. 2006-02-09 01:20:18 +00:00
gdamore 10c249bac1 Remove not-useful UART references from aureg.h, duplicates consolidated into
aucomreg.h.  First part of aureg.h cleanup requested by simonb@.
2006-02-09 01:08:40 +00:00
gdamore cec878cba7 Added PCI support for DBAU1500 (verified). 2006-02-09 00:43:10 +00:00
gdamore 0a8bdb270d Add Au1550 PCI support (Au1500 not yet, coming shortly).
Closes PR port-evbmips/32087.
Reviewed by simonb@ (Also, earlier, matt@, and tsutsui@.)
2006-02-09 00:26:39 +00:00
reinoud a62dc37d89 Add name of the processed feature like the others have. 2006-02-08 23:09:15 +00:00
macallan e8b8a792b0 use local junk variables instead of a global one 2006-02-08 22:17:18 +00:00
macallan cd280be65a add a junk variable to keep empty reads from getting eliminated.
Fixed panic in timerattach_msiiep()
2006-02-08 17:56:55 +00:00
gdamore 8203064709 Add Itronix copyright (3-clause BSD) that I forgot to include in original
versions.
2006-02-08 17:09:04 +00:00
gdamore cf49f62481 Clean up DBAU1550 and DBAU1500 (include ALCHEMY) per suggestion from simonb@. 2006-02-08 17:02:05 +00:00
rpaulo 96aa0d0f54 Fix copy&paste problem found by James Juran
<James.Juran@baesystems.com> in freebsd-net mailing list.
bzero'ing the wrong var with a wrong sizeof is clearly not ok..
2006-02-08 13:35:48 +00:00
gdamore 017c98158d Improved alchemy board support, including board differentiation required for
PCI idsel and irq routing (later).
Various cleanup/rototilling to remove hardcoded pb1000 references.
Reviewed by simonb@, and derived from changes reviewed by matt@ and tsutsui@
2006-02-08 09:04:01 +00:00
gdamore e67db332d1 Remove pointless (unused) dependency upon pb1000 evbmips headers. 2006-02-08 08:49:49 +00:00
uwe 175260c2de sh3_vector_tlbmiss: don't waste perfectly good delay slots. 2006-02-08 02:19:57 +00:00
uwe 33c4e018e2 While here, shave off few bytes and few cycles off of the sh3_vector_tlbmiss.
Since the registers we use are at the very end of address space, we
can load their addresses as small immediate negative constants instead
of loading them from memory.
2006-02-08 00:32:06 +00:00
uwe 9621f44368 Pass untruncated va=TEA to tlb_exception(), not its VPN. 2006-02-07 23:56:20 +00:00
rpaulo 99513cfd59 In pf_socket_lookup() fix copy & paste problem when in6_pcblookup_bind()
returns NULL.
2006-02-07 22:53:03 +00:00
bouyer 36d7bdd35a Add back proper MPBIOS/MPACPI handling. 2006-02-07 20:38:43 +00:00
bouyer c071d3b194 Add another missing ch_ndrive initialization. 2006-02-07 20:37:24 +00:00
wiz 9037345f22 Add a /* CONSTCOND */ for lint. 2006-02-07 20:10:48 +00:00
gdamore d240b42509 renamed pb1000_intr to reflect that it isn't board-specific. Prune unused
pb1000_intr_establish/disestablish calls.

Change was reviewed by folks as part of PCI changes, and should be
non-controversial in any case.
2006-02-07 18:57:12 +00:00
cube 6961689092 Regen, correctly this time. Sorry for the mess. 2006-02-07 17:23:23 +00:00
cube 60c0881da6 I wonder how the leading junk arrive there... 2006-02-07 17:21:56 +00:00
xtraeme ecc3ede39b regen 2006-02-07 17:20:47 +00:00
cube ed82703cc5 Add PLX's 9054 I/O Accelerator. 2006-02-07 17:15:54 +00:00
chs 24b808d88e reduce MAXSSIZ to 32 MB, like most other ports. fixes PR 30918. 2006-02-07 16:55:31 +00:00
simonb 5e4cb2fced Fix END symbol so that it matches START symbol for prom_write. 2006-02-07 11:59:22 +00:00
jmmv ddaa1b349e wsevent cleanup:
- Add a wsevent_inject function that atomically adds a set of events to an
  event queue and change all code that directly messed with a queue to use it.
- Replace the WSEVENT_WAKEUP macro with a regular function.
- Make WSEVENT_QSIZE, PWSEVENT and splwsevent private definitions to
  wsevent.c, instead of exposing them in the header file.
- Make the wsevent_init function take a process to attach to the queue,
  instead of leaving this task to the caller (which always did it).

Reviewed in tech-kern@.
2006-02-07 09:13:02 +00:00
thorpej deb5def967 In the receive interrupt handler, compute the packet length before resetting
m to point to the first buffer in the packet.  The bug would cause the
length of jumbo frames to be incorrect.
2006-02-07 06:20:04 +00:00
macallan dbe2bf713a ansify, de-__P(), sprinkle static 2006-02-07 02:29:28 +00:00
simonb 94fd5272df Use "options<space><tab>". 2006-02-06 23:48:55 +00:00
gdamore 11e96340e9 Forgot to cvs add this file. Doh!
Closes PR port-evbmips/31992.

Adds generalized IRQ routing & reporting support based on different Alchemy
parts.  Reviewed by matt@, simonb@, and izumi@
2006-02-06 23:26:11 +00:00
gdamore eab2d4562e Fix up incorrect ICU reporting, add processor specific switch tables for
IRQ routing and such.

Closes PR port-evbmips/31992.
Reviewed by simonb@, matt@, and izumi@
2006-02-06 23:23:53 +00:00
jmmv cd5689ac5a Fix build by correcting pbms_ioctl's prototype. 2006-02-06 20:13:25 +00:00
jmmv 2f1b4d0c28 Include files.usb earlier so that "pbms at uhidbus" works. 2006-02-06 19:23:17 +00:00
wiz 8a66dad2cb Fix typo in pbms description. 2006-02-06 17:53:32 +00:00
jmmv 81c1972823 Regen. 2006-02-06 17:34:08 +00:00
jmmv f555f5ff1f Add the Apple extended keyboard, its internal hub and the Logitech Marble Mouse. 2006-02-06 17:33:26 +00:00
hamajima b0ff3653c2 Add support for the Atmark Techno Armadillo-210.
Armadillo-210 is subset model of Armadillo-9.
2006-02-06 14:03:22 +00:00
abs 51cff5fbfb regen to add SIS 190 ethernet, as found in ASUS T2-AE1 2006-02-06 12:41:02 +00:00
abs b14514b460 Add SIS 190 Ethernet, as found in ASUS T2-AE1 2006-02-06 12:40:44 +00:00
gdamore 9e9a382790 Renamed PB1000 to ALCHEMY (config supports all generic ALCHEMY dev boards).
Reviewed by simonb@
2006-02-06 03:43:46 +00:00
gdamore d8b2de51a1 Add a bus_space that makes use of wired TLB entries, as required for PCI,
PCMCIA, and perhaps other devices on Alchemy parts.

Closes PR port-evbmips/32298
Reviewed as part of PCI changes by matt@, izumi@, and probably also simonb@.

This implementation has been tested seperately with my PCI code.  This commit
does not add the necessary changes to configuration files to include this in
current configurations yet, as I intend to add that when I add the
multi-platform configuration support for evbmips/alchemy (which will be
required for PCI anyway.)
2006-02-06 03:07:44 +00:00
xtraeme 2d45c66ceb Add a pbms(4) manpage. Remove it from the source code and update TODO. 2006-02-05 18:38:34 +00:00
christos fb038910ea glue for powerbook mouse. 2006-02-05 18:10:57 +00:00
christos 8d7d99b57c powerbook 15" mouse driver from Johan Wallen. 2006-02-05 18:06:50 +00:00
jmmv 8b589aee17 Add support to automatically repeat mouse button events in wsmouse(4) and
change wsconsctl(4) so that this is configurable.

This is specially useful for mice that provide page up/down buttons instead
of a real wheel and that do not send events repeatedly from the hardware.
(E.g.: Logitech Marble Mouse.)

No objections in tech-kern@.
2006-02-05 17:38:33 +00:00
jmmv f1b65bb01b Revert previous; Multiboot makes no sense in Xen. Pointed out by bouyer@. 2006-02-05 17:06:38 +00:00
rpaulo be72809857 Add preliminary/not tested support for IPv6. 2006-02-05 16:44:55 +00:00
jmmv 9f3be9d257 Enable Multiboot support by default since this kernel is the one to most
likely benefit from this feature.  Per anonymous suggestion in my blog.
2006-02-05 15:39:20 +00:00
xtraeme fd8cfc5edb Add missing $NetBSD$ tags and __KERNEL_RCSID(). 2006-02-05 06:03:26 +00:00
mrg 9ceed4147f these configs have not been used for years. (in reality, the machine
splode is now more like the POWEROFSEVEN config.)
2006-02-05 05:47:17 +00:00
cube 6ff13154dd Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
2006-02-05 05:01:48 +00:00
uwe 0fc70b4831 Add bswap16.c and bswap32.c to SRCS. We need fallback versions for
kernels compiled without optimization (and thus without inlining of
bswap16 and bswap32)
2006-02-04 23:33:37 +00:00
dyoung e46f0f4008 In rtw_{rx,tx}ring_fixup, do not set the tx/rx ring index to
something out of bounds if we read an invalid pointer form the
hardware.  Prevents a panic when an rtw@cardbus is ejected.
2006-02-04 23:22:27 +00:00
reinoud 979954f179 VND and harddiscs have their own defect free space management. 2006-02-04 23:21:43 +00:00
uwe e7b43156c5 Truncate the argument to 16 bit with extu.w 2006-02-04 22:24:26 +00:00
xtraeme 452f660f6f Add missing ';' missed in previous. 2006-02-04 22:08:01 +00:00
reinoud 8c7d758cbc Change a comment into a TODO and fix up case where we could return an
illegal allready-freed memory space.
2006-02-04 21:29:11 +00:00
reinoud c0dbf19c1e Add support for SCSI MMC feature 0x0024: hardware assisted defect
management to be passed in mmc_discinfo's device capabilities.

When a device reports support for this the hardware will automatically
remap sectors on read- or write-errors. CD-MRW, DVD+MRW, DVD-RAM and BR-RE
support these.
2006-02-04 21:26:15 +00:00
uwe 708fa89a18 Revert previous. It just attempts to hide bugs in libkern of affected
ports: after the src/common merge, bswapNN are not renamed correctly
for some of the ports.
2006-02-04 21:23:43 +00:00
elad 02e23f0fb1 move setid core externs near defcorename, as requested by yamt@. 2006-02-04 16:11:36 +00:00
simonb 25e557419f Prototypes for i386-related clock functions. 2006-02-04 15:50:19 +00:00
simonb c5c308b498 Replace file somehow removed from HEAD instead of simonb-timecounters
branch.
2006-02-04 15:45:18 +00:00
simonb 278244db9c Don't need old i8254 microtime() with timecounters. 2006-02-04 15:08:44 +00:00
christos ec39469a12 PR/32730: Ed Shouten: setting WS_DEFAULT_[FB]G does not change colors entirely 2006-02-04 14:54:56 +00:00
dsl 758e638b69 We don't need syscall_fancy() unless KTRACE or SYSTRACE is defined.
There also must be a better way to define these (almost equivalent) routines,
not to mention the one in mach_syscall.c
2006-02-04 14:11:34 +00:00
xtraeme d13dcd1df2 Move sysctllog inside the _LKM block. Reported by Jukka Salmi. 2006-02-04 14:01:08 +00:00
yamt e31143d772 vndthread: fix an integer overflow. fix a panic reported by Simon Burge. 2006-02-04 13:40:38 +00:00
yamt 9e261d2477 vndstrategy: do bounds_check_with_mediasize. 2006-02-04 13:38:04 +00:00
martin 70bb3713ea Fix cursor size. From Ed Schouten in PR port-playstation2/32728. 2006-02-04 12:13:05 +00:00
yamt 5a3e361753 for some random places, use PNBUF_GET/PUT rather than
- on-stack buffer
	- malloc(MAXPATHLEN)
2006-02-04 12:09:50 +00:00
yamt 14962199bf nestiobuf_iodone: remove a comment which is no longer true. 2006-02-04 12:02:35 +00:00
yamt e57cc1fc5c vfs_buf_print: print b_rawblkno as well. 2006-02-04 12:01:26 +00:00
yamt ffadcb89d9 vn_read: don't bother to allocate read-ahead context here.
it will be done in uvn_get if necessary.
2006-02-04 11:58:08 +00:00
yamt 6e6449891d vndthread: play with b_vp and v_numoutput as it used to do,
for "strange" filesystems like nfs.  PR/32671 from Simon Burge.

although i'm not really happy with this "fix", i think that the code will
be replaced with direct i/o anyway, sooner or later...
2006-02-04 11:52:32 +00:00
dsl d85485aca1 Use any inlined functions provided by machine/byte_swap.h even when
optimisation is disabled (mmm bloated code..).
Fixes hp700 kernel build.
2006-02-04 11:44:48 +00:00
jmmv 9485c8d272 Now that my idea to fix the detection of the boot device cannot work, reword
the 'XXX' comment and remove the marker.  Also, in case there is no match,
fall back to wd0 instead of nothing.
2006-02-04 11:28:54 +00:00
jmmv 6cf8f1a5d9 Revert yesterday's change that attempted to fix the detection of the
boot device when using a Multiboot boot loader.  It couldn't work because
these boot loaders do not pass a checksum of the disk so matchbiosdisk()
cannot really find any matches.  I should have gone to sleep before
commiting...

Found by xtraeme@.
2006-02-04 11:24:42 +00:00
dsl 8d7fb15302 Add .MAKE to targets that run ${MAKE} so that parallel makes work properly. 2006-02-04 11:23:45 +00:00
yamt b38b1510eb vnd_cget: remove a wrong comment. 2006-02-04 11:19:59 +00:00
yamt fe1aa7db74 vnd_destroy: don't access freed memory. 2006-02-04 10:48:32 +00:00
simonb a85acbf618 Import FreeBSD i386 TSC timecounter support as of 4th Feb 2006. 2006-02-04 10:47:04 +00:00
skrll dc3b2a7f32 Put the __RENAME before the __attribute__((__const__)) so gcc can parse
the bswap{16,32} declarations.
2006-02-04 10:34:43 +00:00
he 021927bcf2 Bump SYMTAB_SPACE to make it fit again. 2006-02-04 09:11:32 +00:00
simonb 769d33c547 Import main FreeBSD timecounter support files as of 4th Feb 2006. 2006-02-04 08:06:23 +00:00
rpaulo fe78fe0b46 bpfilter doesn't accept count anymore. 2006-02-04 03:48:18 +00:00
rpaulo ae6add6af0 bpfilter is already supported. 2006-02-04 03:47:41 +00:00
rpaulo 926f98bcbb bpfilter doesn't accept count anymore. 2006-02-04 03:43:24 +00:00
rpaulo 23b8c23173 bpfilter doesn't accept count anymore. 2006-02-04 03:33:20 +00:00
gdamore 9eebd03f2e port-evbmips/31910
Forgot to include this file in the last commit... oops!
2006-02-04 03:33:16 +00:00
rpaulo 806f7632b5 bpfilter doesn't accept count anymore. 2006-02-04 03:29:57 +00:00
rpaulo dfedc07975 bpfilter doesn't accept count anymore. 2006-02-04 03:18:58 +00:00
gdamore bfacbb80e4 Provide streaming bus_space methods that don't swap if bus is otherwise
swapped from host byte order.
Closes PR port-mips/31910
Reviewed by <izumi>, <matt>, and <simonb>
2006-02-04 03:18:10 +00:00
rpaulo e1c6b6ed0f bpfilter doesn't accept count anymore. 2006-02-04 02:53:13 +00:00
rpaulo df5390003c bpfilter doesn't accept count anymore. 2006-02-04 02:42:27 +00:00
rpaulo 21c1d240bc bpfilter doesn't accept count anymore. 2006-02-04 02:31:12 +00:00
rpaulo 6d1dc467f2 regen 2006-02-04 02:27:23 +00:00
rpaulo 9093dbb4e6 bpfilter doesn't accept count anymore. 2006-02-04 02:25:57 +00:00
rpaulo cc9f3c8ae6 regen 2006-02-04 02:25:21 +00:00
rpaulo 4866e74b23 bpfilter doesn't accept count anymore. 2006-02-04 02:25:08 +00:00
uwe 82046cc108 Move __END_DECLS back to the end of declarations.
Fix #endif comment to reflect #if condition.
2006-02-04 01:31:48 +00:00
uwe 47df5bafdd Declare bswapNN as __attribute__((__const__)). 2006-02-04 01:08:30 +00:00
uwe 726372b06a There's no reason to cast the return value of bswapNN to uintNN_t in
one particular place (little endian ntohl &co).
2006-02-04 01:07:20 +00:00
uwe 1e11a37d0c Move #include <machine/bswap.h> back into the same nesting inside ifdefs.
Assembler sources don't care about optimized inline versions of bswap.
Undo the changes to the namespace.
Hi, dsl.
2006-02-04 00:01:36 +00:00
jmmv 62c98fdb8d When booting an i386 kernel with Multiboot, properly detect the boot device
by looking it up in the x86_alldisks table (instead of trying to match it
to 'wd*' manually).

In order to do this, move the cpu_rootconf function from x86 common code
to amd64 and i386 specific one.  This way, i386 can do an extra step (call
the appropriate Multiboot code) in the appropriate place (after
x86_matchbiosdisks and before findroot()).
2006-02-03 23:33:30 +00:00
dsl 801edd9a37 Use uint32_t and uint16_t not in_addr_t and in_port_t 2006-02-03 22:05:21 +00:00
bouyer aea4d25db5 Split move interrupt-related PCI functions from pci_machdep.c to
pci_intr_machdep.c. In Xen-3 registers access is done the normal way but
interrupts need custom setup. Proposed on port-amd64, port-i386 and
port-xen a week ago.
2006-02-03 19:58:20 +00:00
bouyer fc23e0389e Change repne to rep for {ins,outs}{b,s,l} as proposed
to port-amd64, port-i386 and port-xen 2 weeks ago. Under Xen-3, a repne won't
loop (only the first value is read/written) while rep works as expected.
Linux and FreeBSD use rep, and documentation suggests that repne should
not be used with ins and outs instructions.
See http://mail-index.netbsd.org/port-xen/2006/01/22/0000.html for
details.
2006-02-03 19:55:58 +00:00