Commit Graph

104560 Commits

Author SHA1 Message Date
nonaka ec54e91092 fix wrong op priority. 2010-03-21 13:10:38 +00:00
pooka f3beefdb45 Convert acpibat to use ioconf instead of homerolled config glue.
Note, config whines about things like:
files.acpi:30: attaching undefined device `apm'

I intentionally was a lazy boy and didn't include a ton of dirt to
keep the hot napalm and riot blasts in the config thread rolling ;)

tested by jruoho (thanks!)
2010-03-21 07:09:56 +00:00
pooka ce672f239f include bsd.ioconf.mk when necessary 2010-03-21 06:56:52 +00:00
pooka 40bb87a667 Move make snippets for use with config(1) ioconf functionality from
rump into share/mk.  This is to make it useful for all kernel
builders.

Note: we have waaay too many weird and wonderful ways of making
kernel code (monolithic kernel, modules, rump).  There should be
only one way to build kernel code instead of a maze of twisty little
.mk files, all not quite alike.  When that is fixed, this snippet can go
into the more generic .mk file.
2010-03-21 06:55:44 +00:00
chs e23026927c in nfs_bootparam(), set the corresponding flag for each field that we fill in. 2010-03-21 00:10:40 +00:00
chs 45709939f2 assert that pcb_onfault is NULL in places where it should be. 2010-03-21 00:10:14 +00:00
christos f7c98956a3 remove unnecessary cast now that lint is more intelligent. 2010-03-21 00:04:34 +00:00
chs 04aa4da3b0 fix copy{in,out}{,str}() to return the error returned by uvm_fault().
fixes PR 41813.
2010-03-20 23:31:27 +00:00
mrg 9a2f900318 convert pmap_lock into an IPL_VM lock, and avoid calling
KASSERT(!mutex_owned(&pmap_lock)) since that's no longer valid.

this fixes hangs on 4-core machines like the U80.

tested on U80, SB2500 and SB2000.


XXX: my initial attempts to replace pseg_lock with this new equivalent
XXX: lock hang in pmap_bootstrap it seems..  but this should be able
XXX: to go away now.
2010-03-20 20:36:23 +00:00
pgoyette 9f799e4338 Use correct format directive in aprint_debug_dev()
Thanks to Kurt Schreiner for reporting this on current-users@
2010-03-20 19:04:51 +00:00
kiyohara 12fb39e568 Fix build failed.
Add forgot zmiireg.h since support 405EX.
2010-03-20 15:22:27 +00:00
christos 7a75d79822 /*LINTED*/ is too wide a brush. 2010-03-20 14:43:50 +00:00
joerg 8538400b67 Shut up the broken piece of junk called lint. Use __inline. 2010-03-20 12:54:42 +00:00
mrg c8c2757eb3 don't pass "maxaddr" as a boundary in bus_dmamap_create() like rev 1.8
did for _alloc().
2010-03-20 02:53:35 +00:00
pgoyette 9a70d7bce8 Fix the dbcool_{get,set}_limits() routines to properly deal with min/max
values on temp limits.  The actual ranges for temp limits varies if the
chip is running in "extended temperature" mode, so we need to handle this
difference, too.

Verified on my home machine which runs in extended-temp mode and by
njoly@ on a machine which does runs in the older 2s-complement mode.
2010-03-20 02:42:19 +00:00
christos b691db097d more debugging compilation fixes. 2010-03-20 01:52:16 +00:00
christos 7fa75c35d6 fix debugging code. 2010-03-20 01:47:12 +00:00
christos 6d16572ef4 minimize ifdefs and avoid duplicated code. 2010-03-20 01:45:30 +00:00
dyoung 1d2aca0728 Add PCI_BAR(n) for the nth Base Address Register. 2010-03-20 00:23:41 +00:00
dyoung 061b0589a4 Add a prototype for pci_mmio_range_infer() that will infer the
range of memory forwarded by the host chipset to PCI.
2010-03-20 00:02:59 +00:00
dyoung 76d5da9433 Cosmetic: abbreviate: use `pc' instead of `pci_chipset_tag'. 2010-03-19 23:27:12 +00:00
christos 3e2a63c711 - Make maximum memory limits for various things #define constants and use the
consistently across the code.
- Re-do note parsing code to read the section headers instead of the program
  headers because the new binutils merge all the note sections in one program
  header. This fixes all the pax note parsing which has been broken for all
  binaries built with the new binutils.
- Add diagnostics to the note parsing code to detect malformed binaries.
- Allocate and free note scratch space only once, not once per note.
2010-03-19 22:08:13 +00:00
joerg 7780b0a4a4 Add functions for replacing runtime invariant 32bit unsigned divisions
with simpler full width multiplications and shifts + adds. The main
operations are generally at least 50% faster when serialised and often
better for parallelism as well.
2010-03-19 16:48:55 +00:00
tsutsui 8058413106 Replace some magic numbers with macro. Tested on SMC_TT on atari. 2010-03-19 15:59:22 +00:00
tsutsui 3b71237085 Misc KNF. 2010-03-19 14:57:52 +00:00
tsutsui e875fdc857 No need to override mem_ring value in ne2000_ipkdb_attach()
since a wrong calculation in dp8390_ipkdb_attach() was fixed.
2010-03-19 14:26:37 +00:00
tsutsui 829582d74c ANSI'fy, misc KNF. 2010-03-19 14:20:56 +00:00
tsutsui 65fc75c7f3 u_intN_t -> uintN_t 2010-03-19 10:54:00 +00:00
tsutsui 60ea12aae5 bus_space_write_region_N() should also take a const buffer. 2010-03-19 10:45:09 +00:00
he b7401550b9 Constify the buffer pointer argument of the _bus_space_write_multi_<n>
inline functions, so that this builds again.  (Otherwise, ne2000.c driver
would now fail to build.)
2010-03-19 08:28:44 +00:00
skrll 6fdbb020e1 Fix PMAPDEBUG build for previous. 2010-03-19 07:35:29 +00:00
skrll dfb62ec228 Not all PA CPUs have the U-bit (uncacheable) for non-IO memory. In fact
most don't.  Deal with non-equivalent aliases by removing and flushing the
managed mappings, and flushing the unmanaged mappings.

When flushing caches/TLB flush the cache before purging the TLB just in
case the flush enters the mapping into the TLB.
2010-03-19 07:29:44 +00:00
cnst deaf16ef51 Remove aiboost(4) as obsolete and redundant since the introduction of aibs(4).
http://mail-index.netbsd.org/tech-kern/2010/03/06/msg007458.html

Reviewed by <pgoyette>, <cegger>, <jruoho>, <tech-kern>.
2010-03-19 04:04:27 +00:00
pgoyette 3a92a7609d Modify previous commit. The routine to deliver events is intended to be
exported to device drivers, so rename it and move the declaration to
<dev/sysmon/sysmonvar.h>
2010-03-19 02:19:13 +00:00
cnst 291f4cc576 support W83667HG (0xa5) in wbsio(4); its hw mon is already supported by lm(4) as W83627DHG (0xc1) 2010-03-19 02:17:41 +00:00
dyoung d2f2daad71 Remove superfluous cast (device_t to device_t). 2010-03-19 01:44:05 +00:00
dyoung f4de9422d8 Use Cardbus_intr_disestablish() instead of cardbus_intr_disestablish().
Get rid of a (short) staircase in ex_cardbus_detach().
2010-03-19 01:34:46 +00:00
dyoung cc222cba88 Don't pick up the network-interface, ethernet, and 802.11-related
definitions by chance (or by the bus-specific front-end #including them!).
#include them here, instead.
2010-03-19 01:32:30 +00:00
dyoung 1d4183c115 Don't pick up the <sys/sysctl.h> definitions by chance,
but #include here.
2010-03-19 01:31:11 +00:00
pgoyette 4e3cadf247 Separate event delivery from polling and limit evaluation in
sme_events_worker().

Provide a wrapper that can be called from sensor drivers' interrupt
routines to find and deliver a specific event.

XXX Actually updating sensor drivers (and their parent devices) to
XXX have interrupts is a future enhancement.  This is simply an
XXX enabler.
2010-03-19 01:16:44 +00:00
dholland e41c20ba61 grammar patrol 2010-03-18 22:25:51 +00:00
dyoung d75450ce8b This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.

Simplify interrupt (dis)establishment by two source transformations:

-       cardbus_intr_disestablish(cc, cf, ih);
+       Cardbus_intr_disestablish(ct, ih);

-       ih = cardbus_intr_establish(cc, cf, ...);
+       ih = Cardbus_intr_establish(ct, ...);

The identical change to a few other CardBus NICs has not caused any
problems, as expected, so I'm going to commit this rather safe change
and get on with the work.

Testers have been enlisted.  I will revisit this change if I get any
negative responses.
2010-03-18 20:54:56 +00:00
dyoung 8b504d80a5 Simplify interrupt (dis)establishment by two source transformations:
-       cardbus_intr_disestablish(cc, cf, ih);
+       Cardbus_intr_disestablish(ct, ih);

-       ih = cardbus_intr_establish(cc, cf, ...);
+       ih = Cardbus_intr_establish(ct, ...);

The identical change to a few other CardBus NICs has not caused any
problems, as expected, so I'm going to commit this rather safe change
and get on with the work.

Testers have been enlisted.  I will revisit this change if I get any
negative responses.
2010-03-18 20:52:43 +00:00
dyoung 3caa8a5650 This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.

Simplify interrupt (dis)establishment by two source transformations:

-       cardbus_intr_disestablish(cc, cf, ih);
+       Cardbus_intr_disestablish(ct, ih);

-       ih = cardbus_intr_establish(cc, cf, ...);
+       ih = Cardbus_intr_establish(ct, ...);

The identical change to a few other CardBus NICs has not caused any
problems, as expected, so I'm going to commit this rather safe change
and get on with the work.

Testers have been enlisted.  I will revisit this change if I get any
negative responses.
2010-03-18 20:51:42 +00:00
pooka 1c55854229 Print builtin "use -f" message only if not autoloading. Otherwise
it'll get spammy.

XXX: this should probably be printed iff the toplevel module is
not being autoloaded (i.e. there is a human to interpret the error).
Otherwise disabled dependencies give a misleading EPERM.
2010-03-18 18:25:45 +00:00
pooka d76b630321 Never autounload builtin modules (they will never be autoloaded if disabled). 2010-03-18 17:33:18 +00:00
kiyohara 325b8e821a Support Plathome's OpenBlockS600. 2010-03-18 14:15:38 +00:00
kiyohara b105a1867e Support PowerPC 405EX/EXr.
1. Add some new source and header files.
     (MAL(split) and RGMII(new) relations for EMAC)
  2. Create dcr4xx.h.  Its moved from dcr405gp.h.  Also remove dcr405xx.h.
  3. intr.c supports MULTIUIC with virtual-irq.  likes to oea.
     support 32-virq/128-hwirq.
  4. multiple emac support.
  5. WALNUT and VIRTEX_* includes arch/powerpc/conf/files.ibm4xx.
  6. WALNUT pci uses arch/powerpc/ibm4xx/pci/.
2010-03-18 13:58:38 +00:00
kiyohara 2692e2e238 Support PowerPC 405EX/EXr.
1. Add some new source and header files.
     (MAL(split) and RGMII(new) relations for EMAC)
  2. Create dcr4xx.h.  Its moved from dcr405gp.h.  Also remove dcr405xx.h.
  3. intr.c supports MULTIUIC with virtual-irq.  likes to oea.
     support 32-virq/128-hwirq.
  4. multiple emac support.
  5. WALNUT and VIRTEX_* includes arch/powerpc/conf/files.ibm4xx.
  6. WALNUT pci uses arch/powerpc/ibm4xx/pci/.
2010-03-18 13:47:04 +00:00
cegger d03d022556 buildfix: invert comparison to get the 64bit defines by default.
Fixes 'i386/elf_machdep.h: No such file or directory error' when compiling
amd64 toolchain on OSX.
2010-03-18 08:28:33 +00:00
jruoho 2786f7261b Silence errors from the integer evaluations in case the objects are not found.
(This was too verbose even for ACPI_DEBUG.) Also fit the status messages to
one line during boot by using aprint_verbose() for extra information.
2010-03-17 20:29:32 +00:00
jruoho ef2b6dd20b Print also the so-called "granularity" values when the _BIF is evaluated.
These refer to the smallest increment in capacity that the battery is
capable of measuring.
2010-03-17 11:07:59 +00:00
jruoho dce0020d0c Remove the technology "sensor" (a fixed constant). Report this information
in an improved output when the battery information changes (i.e. device
attachment or battery removal/insertion).
2010-03-17 09:21:50 +00:00
jruoho febc76c6be Remove the timer-based check in the sensor refresh routine. We henceforth
trust that the sysmon_envsys(9)'s polling is functioning properly. Discussed
with drochner@, jmcneill@, and pgoyette@.
2010-03-17 08:07:27 +00:00
jruoho 88e4bfe590 Fix the testing of temporarily unknown values. 2010-03-17 07:48:18 +00:00
jruoho 73b3b3d393 Move the low and warning capacity sensors to the limits framework provided
by sysmon_envsys(9).
2010-03-17 07:40:34 +00:00
macallan 28b428e5dc Implement character drawing by hardware so we don't need to map the framebuffer
anymore. Also do some cleanup, remove no longer relevant debugging code etc.
2010-03-16 21:27:02 +00:00
tsutsui 436303df95 Check if mapped bus_space regions are actually valid
before trying to access them.

Fixes trap panic when SMC_TT board is not installed. (oops)
2010-03-16 18:50:14 +00:00
tsutsui 84ebe66073 Renumber board type for LE_PAM.
We can't use 0x00 if we also use the value as bitmap.
2010-03-16 17:58:57 +00:00
tsutsui a44528e3c5 Fix register and memory addresses for PAM, per MintNet driver.
XXX: In le_vme_match(), probably we should not return even if
XXX: bus_space_map(9) fails unless all le_addresses have been checked.
2010-03-16 17:56:41 +00:00
skrll afd97f3579 The FP regs are accessed in both physical and virtual modes. Make sure
they're allocated in directly mapped memory to avoid aliasing problems
and unnecessary cache flushing.

Fix various names and references. If we ever directly map the uarea and
pcb we can change things at that point.

Significantly helps my J210 (PA7200).

Mostly from OpenBSD.
2010-03-16 16:20:19 +00:00
martin 238cb98a56 Do not overwrite a ISO9660 partition (which the sunlabel can not properly
represent, but the cd driver carefully crafted including session data).
This makes it possible to just mount cd0a as cd9660fs on a sparc* install
CD. Solution suggested by <mlelstv>.
2010-03-16 14:53:08 +00:00
he 921b8ba089 Allow this driver to build for ofppc as well. 2010-03-16 12:53:17 +00:00
jruoho b32f00af46 Remove the call to AcpiGetType() in acpi_make_devnode(). This is the same
information as ACPI_DEVICE_INFO::Type, obtained later by AcpiGetObjectInfo().
2010-03-16 08:02:01 +00:00
jruoho dd980e2a52 Remove unused headers. 2010-03-16 07:18:55 +00:00
jruoho 881fa5618a With the intent of making 'struct acpi_devnode' as the central place for
information related to ACPI device nodes: (a) introduce a generic scan
function for ACPI device driver "capabilities", and (b) eliminate local data
structures from ACPI wake-devices. Discussed with jmcneill@.
2010-03-16 05:48:42 +00:00
mrg 5845ae3973 include strncpy.c, like mvme68k libsa/Makefile rev 1.32. 2010-03-16 01:46:38 +00:00
dyoung 14d897a9e1 Make this compile on sparc64:
1 s/next_tick/next_tint/ because next_tick shadows a global on sparc64.

2 Fix the bus-barrier helper routines, which had the tag & handle
  swapped (!!).  Move the helpers from rtwreg.h to rtwvar.h, and
  change RTW_BARRIER() into an inline subroutine called rtw_barrier().
2010-03-15 23:21:08 +00:00
christos 724aa20200 rename DEBUG_ASLR -> PAX_ASLR_DEBUG 2010-03-15 20:35:19 +00:00
dyoung 9109db5aef rbus is always #defined as 1, so unifdef -D rbus=1. 2010-03-15 20:02:55 +00:00
dyoung 47f456a03f Delete unused member ct_bar[] from struct cardbus_devfunc. 2010-03-15 19:50:50 +00:00
dyoung 3fa968935a Delete unused functions cardbus_save_bar() and cardbus_restore_bar(). 2010-03-15 19:48:31 +00:00
dyoung bc155f4a0d Delete unused members ct_rbus_iot and ct_rbus_memt from struct
cardbus_devfunc.
2010-03-15 19:43:17 +00:00
he 302a0beda3 Latest change to loadfile_elf32.c grew a dependency on strncmp,
so provide that as well as part of libsa for this platform.
2010-03-15 16:13:13 +00:00
kiyohara abcc88b537 More SYMTAB_SPACE.
Enable wsmux for udl.
2010-03-15 13:18:59 +00:00
kiyohara fa7c24a083 XXXX: More power is necessary for NIC and USB? (no document. from Linux)
tested on verdex + console-vx + netCF-vx
  and verdex-pro + netpro-vx + consoleLCD-vx.
2010-03-15 13:16:56 +00:00
kiyohara 0d23f6e0df Use bus_space_write_2() instead of _1, because sm(4) is 16bit/word. 2010-03-15 13:11:23 +00:00
uwe 73fb9af349 Add memset to libkern on vax, moving existing memset.S to src/common.
While kernel source code is supposed to use <machine/macros.h> via
<sys/param.h> and pick an inline asm version from there, gcc itself
can generate direct calls to memset() for structure initialization, so
the symbol must be provided.

Fixes INSTALL kernel, for which -Os caused gcc to use memset() call to
initialize a struct in uvm_fault_internal().
2010-03-15 11:46:49 +00:00
uwe 16399c9eba Sync with <sys/bus_proto.h>: constify source arg of bus_space_write* &co,
fix size_t vs. bus_size_t confusion.

Makes mmeye kernel build again.
2010-03-15 11:27:38 +00:00
hannken afab4c313c Allow ufs_inactive() while a file system is suspending. Removes a possible
deadlock between vrele() and ffs_sync() during suspension.
2010-03-15 09:20:10 +00:00
enami 406cd2335d The monitor struct member is gone. Make this compile again. 2010-03-15 03:27:49 +00:00
darran 297071520d DTrace: include in opt_dtrace.h so it will build with DTrace. 2010-03-15 02:28:59 +00:00
jakllsch e234a659da Remove duplicate USB_PRODUCT_LINKSYS3_WUSB11V28 entry.
Pointed out by <db@db.net> in #NetBSD-code.
2010-03-15 00:17:55 +00:00
darran 0ede06284a DTrace: Make the CTF handling conditional on KDTRACE_HOOKS for now since
it breaks the boot of the atari kernel (and possibly others).
2010-03-14 21:27:49 +00:00
dyoung 9650f1c575 Use device_suspensor_t instead of struct device_suspensor. 2010-03-14 21:25:59 +00:00
jld c943cf459a For RAID sets which have no parity (i.e., RAID level 0) and therefore can
never have a parity map, make the parity map ioctls fail with EINVAL.

This makes `raidctl -m` print a scary-looking error on such sets, which
is an improvement over the previous behavior of falsely claiming that
the parity map would be enabled on the next configuration.
2010-03-14 21:11:41 +00:00
dyoung 090e16c442 Add a new member, pc_super, to x86's pci_chipset_tag: pc.pc_super points
to the tag that pc inherits its behavior from.  Add code to deal with
pc.pc_super.

Pull identical declarations out of xen/include/pci_machdep.h and
x86/include/pci_machdep.h into x86/include/pci_machdep_common.h.
2010-03-14 20:19:06 +00:00
pgoyette 89bf6ebb9f Remove setting of edata->monitor since that member no longer exists. 2010-03-14 18:05:07 +00:00
pgoyette d8b50b486b Remove setting of the edata->monitor since that member no longer exists. 2010-03-14 18:04:29 +00:00
pgoyette d5f3dc8bdd Retire the 'monitor' member of the envsys_data_t. It was only used in
one place, and functioned as a logical OR of the ENVSYS_FMON* flag bits.
2010-03-14 18:03:15 +00:00
kiyohara 6c12a30afa Add fdc@isa.
tested on PegasosII.
2010-03-14 10:14:14 +00:00
kiyohara b795d8986f Fix isa(4) support for ofw.
ofw not initialized bus_space for isa(4).
  It tested on ofppc(PegasosII).
2010-03-14 10:03:49 +00:00
explorer 815e4bafd6 add device id and quirks for iPhone 3GS (just copy the 3G ones) 2010-03-14 08:44:46 +00:00
mrg 97f86c499c regenerate 2010-03-14 03:54:59 +00:00
mrg b77d34ff05 add several core i7 devices, and some more ricoh card reader controllers. 2010-03-14 03:13:04 +00:00
mrg 19499f3f8d update all of these makefiles for the .so -> .pico change.
most of them are most harmless, but the libgcc parts are quite essential.
before this change, all the special rules for .pico files were not applied,
and exception handling wasn't enabled.  this caused c++ exceptions not to
work on sparc64.


this fixes the build of boost-headers (it was correctly calling exception
support broken!), which in turn makes all the things that depend upon it
to actually work again on sparc64.
2010-03-14 00:26:09 +00:00
christos 05cb23b544 call accept_filter_init int setopt so that don't use an uninitialized lock
from the setsockopt path.
2010-03-13 23:03:39 +00:00
christos fc75a712eb Include ../../Makefile.inc now that it works. 2010-03-13 22:29:33 +00:00
christos 1b57f2e4ab now that I've fixed Makefile.inc, include it. 2010-03-13 22:23:47 +00:00
christos 26d6c574bd Don't hard-code ../../ so that we can handle multi-level modules (dtrace) 2010-03-13 22:06:30 +00:00
christos 8bc5973709 add BIOC{G,S}FEEDBACK which allows one to receive injected outgoing packets
via bpf.
2010-03-13 20:38:48 +00:00
tsutsui 52e0334c00 Regen from GENERIC.in rev 1.84:
> Add support for the SMC Elite Ultra Ethernet with the SMC_TT VME-ISA bridge.
2010-03-13 16:31:38 +00:00
tsutsui 639430789a Add support for the SMC Elite Ultra Ethernet with the SMC_TT VME-ISA bridge.
The SMC_TT is the user designed "handmade" VME-ISA bridge circuit
for 16 bit VME slot on TT030 and the SMC Elite Ultra ISA Ethernet card.
More information about SMC_TT can be found in the following archive:
ftp://ftp.funet.fi/pub/atari/net/smc_tt1.zip

Demonstrated on the NetBSD booth in Open Source Conference 2010 Kansai@Kobe.
2010-03-13 16:30:02 +00:00
scw d2666a951d Fix PR kern/42838 using option #1 as described by KIYOHARA Takashi in
http://mail-index.netbsd.org/current-users/2010/02/20/msg012654.html

Add a comment in struct ucom_methods to explain usage of 'ptr' and 'count'
in the ucom_read handler.
2010-03-13 16:28:13 +00:00
christos e8cb686278 make this compile. 2010-03-13 16:27:06 +00:00
skrll 0aa13d6505 Add a comment. 2010-03-13 16:17:59 +00:00
tsutsui 2253fb2fe8 Some KNF. 2010-03-13 15:46:09 +00:00
tsutsui 329daadadb - include "ioconf.h" for struct cfdriver we_cd
- remove unused macro
2010-03-13 15:42:09 +00:00
tsutsui 74c4eb5262 - make local functions static
- const'ify
2010-03-13 15:27:40 +00:00
tsutsui b559dc4595 u_int8_t -> uint8_t 2010-03-13 15:26:38 +00:00
tsutsui 5c2e2150a5 Misc KNF. 2010-03-13 15:08:24 +00:00
nakayama d35d52d37f Trim extra space, introduced in aprintfy. 2010-03-13 15:01:53 +00:00
kiyohara 7b15e91671 Add Broadcom BCM5482.
It tested on OpenBlockS600. (coming soon ;-)
And reorder.
2010-03-13 12:57:23 +00:00
kiyohara 8617f5a119 Regen. 2010-03-13 12:54:03 +00:00
kiyohara a7e3a896d7 Add Broadcom BCM5482. 2010-03-13 12:52:29 +00:00
nonaka bd9d1e1c80 fix compile failure when PXAMCI_DEBUG is defined. 2010-03-13 12:28:44 +00:00
bsh 4308bedb7d add SD/MMC driver for Twintail based on the driver for Zaurus. 2010-03-13 11:37:47 +00:00
bsh 95e7a9c9b7 apply struct device split to the rest of the drivers for Twintail. 2010-03-13 11:26:42 +00:00
bsh b58b20fe01 fix LCD drivers for Lubbock and Twintail.
- pass correct attach args to pxa2x0_lcd_attach_sub()
  - make this driver compile without wsdisplay again.
2010-03-13 11:15:52 +00:00
bsh 622048aac2 fix changes for struct device split for Lubbock. 2010-03-13 11:13:31 +00:00
bsh b292093df8 pass correct atttach args to sacc_probe() 2010-03-13 10:55:09 +00:00
mrg 4b35b5643b convert sparc64 to MULTIPROCESSOR kernel by default, and introduce
s/MP/UP/ kernels were otherwise in place.

in my testing on a U60, i couldn't really notice any different in
speed, but we need testing on a U1/U5/U10 systems to be sure that
GENERIC.UP isn't necessary.

for sparc64, this is some what required as USIIIi systems have the
memory controller on the CPU, and unless the CPU is spunup, a UP
kernel will not function on these systems.  (we obviously need to
join the NUMA-for-netbsd camp now, too! :-)


this should enable the installer to function on all systems that we
support, but also give the option for people to install GENERIC.UP
on their single-cpu systems if they choose.


XXX: i haven't actually tested sysinst with this, but i have built
both sparc and sparc64 release iso's successfully with this change
(sans having to comment out kern_ctf.c.)
2010-03-13 08:36:06 +00:00
darran ce440a888f DTrace: only build in kernel CTF support if DTrace support is enabled
(i.e. options KDTRACE_HOOKS).
2010-03-13 08:33:26 +00:00
christos 04140a33ca make this compile. 2010-03-13 01:41:14 +00:00
martin e19ffe5ce4 Provide full terminfo.db on install media 2010-03-12 23:07:13 +00:00
matt ae05b0bdc5 Add placeholdr flags indicating that the bus has MSI/MSI-X support. 2010-03-12 21:55:05 +00:00
darran f6bf800773 DTrace: Add the Function Boundary Trace (FBT) provider moduile. This
module  instruments every function in the kernel with entry and exit
probes.  These probes are true zero-effect probes in that they don't
exist in the code until they are enabled.  The probes are enabled by
directly patching the function entry and exit points to make jumps into
the dtrace framework.
This gives us over 29,000 trace points in the kernel.
2010-03-12 21:53:15 +00:00
darran 38c72d335c DTrace: Add support for CTF sections in the netbsd elf image, load these
at boot.
Add a ksyms_mod_foreach() function to iterate a callback function over the
set of elf symbols for a specific module (netbsd included).
Add kern_ctf.c and mod_ctf_get() to allow the retrieval and decompression
of CTF sections for a specific module.
2010-03-12 21:43:10 +00:00
darran 328338d6bd DTrace: Add support for a simulated solaris_cpu[] data structure per
cpu.  Needed for the FBT provider amongst other features.
2010-03-12 21:37:37 +00:00
jakllsch 07188f89fa ata(4) expects IDENTIFY data to be in host endianess.
Logic borrowed from siisata(4) (which I've confirmed works on sparc64).
Should fix PR kern/39659.
2010-03-12 19:03:14 +00:00
haad 0d21743f10 Disable disk_ioctl_switch fo device-mapper control device. 2010-03-12 16:26:26 +00:00
roy f5bae739a4 Revert part of last patch. Didn't mean to enable pf by default. 2010-03-12 15:12:12 +00:00
roy f4a46cfc64 Change the default console from wsemul_sun/sun-ss5 to wsemul_vt100/wsvt25.
This allows for a colour console, fixes home/end keys not working and
works with the embedded wsvt25 description in libterminfo.
2010-03-12 14:50:54 +00:00
oki 4c7318c4d2 Fixed a number of race conditions in the case of receiving ipv4 packet.
found by iij seil team.
2010-03-12 13:33:19 +00:00
jdc 403394c2fd Match an additional `SHT1x' signature when attaching.
Handle different temperature calculations for `SHT1x' and for `TEMPer' types.
Display signature and data when UTHUM_DEBUG is defined.
Tested on `SHT1x' (TEMPerHUM) and `TEMPer' (TEMPer and TEMPer1) devices.
Also tested by Antoine Reilles on an `SHT1x' device.
2010-03-12 09:02:15 +00:00
jdc 54c6f4b764 Add mappings for KS_End/KS_KP_End, so that the `End' key actually does
something.
2010-03-12 08:40:50 +00:00
skrll e7893d09c1 Start at the first, not the second, exception register. 2010-03-11 21:43:15 +00:00
skrll 00affa2e9e Comment formating. 2010-03-11 21:41:50 +00:00
skrll ee193ef9a3 Comment style. 2010-03-11 21:37:52 +00:00
eeh 8dab50982e Fix shifting by zero. 2010-03-11 19:28:55 +00:00
dyoung 6240526075 Simplify interrupt (dis)establishment by two source transformations:
-       cardbus_intr_disestablish(cc, cf, ih);
+       Cardbus_intr_disestablish(ct, ih);

-       ih = cardbus_intr_establish(cc, cf, ...);
+       ih = Cardbus_intr_establish(ct, ...);

Tested by ITOH Yasufumi.  Results: njs(4) works, njata(4) hangs.
njata(4) also hangs in 5.0.1 and in 5.99.24 prior to this patch, so
there is no regression.
2010-03-11 17:27:40 +00:00
dyoung 30882f2250 This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.

Simplify interrupt (dis)establishment by two source transformations:

-       cardbus_intr_disestablish(cc, cf, ih);
+       Cardbus_intr_disestablish(ct, ih);

-       ih = cardbus_intr_establish(cc, cf, ...);
+       ih = Cardbus_intr_establish(ct, ...);

Tested by Juraj Hercek.
2010-03-11 17:24:27 +00:00
jruoho 77c099394c Fix comment typos (mangement, managmenet). 2010-03-11 13:51:01 +00:00
skrll 6392307893 A nullify snuck in. Remove it. 2010-03-11 13:26:20 +00:00
enami b624a04f14 Port uyurex(4) from OpenBSD. There is some XXX but works enough to
play with it.
2010-03-11 10:38:36 +00:00
enami 9ef501d113 Regen. 2010-03-11 10:35:59 +00:00
enami 4d59640014 Add device id of yurex from OpenBSD. 2010-03-11 10:35:22 +00:00
skrll bc84d3f145 KNF 2010-03-11 07:21:24 +00:00
skrll 6b05fe22ef Reformat comments. 2010-03-11 07:20:15 +00:00
skrll 2fc327764c Wrap a long line. 2010-03-11 07:15:25 +00:00