Commit Graph

104438 Commits

Author SHA1 Message Date
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
skrll
edbb9c77e1 Rename Debugger to cpu_Debugger. 2010-03-11 07:14:22 +00:00
skrll
e8a43a17a6 Comment change. 2010-03-11 07:05:21 +00:00
skrll
7c4e782041 Comment improvements. 2010-03-11 07:01:09 +00:00
msaitoh
ff15f2a4f8 Add missing ifmedia_delete_instance() in bnx_detach(). 2010-03-11 04:55:04 +00:00
mrg
ebc9e23316 various aprint_* fixes. 2010-03-11 03:54:56 +00:00
mrg
09c1408d7c - pay attention to the "no-streaming-cache" flag.
- minor re-structure so this looks a little more like psycho.c.
2010-03-11 03:30:16 +00:00
mrg
db7dad6e7e convert to CFATTACH_DECL_NEW(). 2010-03-11 03:12:42 +00:00
uwe
bfdd7a7c6e Bump SYMTAB_SPACE so that the contents fits again. 2010-03-11 02:21:41 +00:00
darran
33bc31b9e2 DTrace: fix a build problem for the SDT provider. 2010-03-10 23:40:53 +00:00
dyoung
4b936f667e 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 me.
2010-03-10 21:00:36 +00:00
bouyer
0aa12b3498 Fix apm(4) suspend/resume:
- apm_suspend() and apm_standby() will call splhhigh() before entering
  standby or suspend. After resume, the system go back tsleep()ing
  in the apm thread without restoring the ipl (this is done in
  apm_resume()), and calling tlseep() at IPL_HIGH cause a DIAGNOSTIC
  panic (and other bad things, I guess).
  Fix by calling apm_resume() from within apm_suspend() or apm_standby(),
  after aa_set_powstate() has returned.
- In apm_event_handle(), we test (apm_standbys || apm_suspends) to set
  apm_damn_fool_bios to 1 and break the while() loop in apm_periodic_check().
  But we set apm_standbys or apm_suspends to non-0 only if apm_op_inprog
  is 0 and we failed to record the apm event. With apmd listening
  we usually succeed recording the event, so apm_standbys/apm_suspends remains
  0 and we never go out of the while() loop.
  Fix by apm_op_inprog instead of (apm_standbys || apm_suspends)
  to break the loop.
2010-03-10 20:30:00 +00:00
bouyer
d8c4fc9544 ahcisata_core.c 1.23 cause long drive probe (31s, reported by
Roy Marples), or other devices misbehavior probably due to interrupts issues
(reported by Jukka Ruohonen). Back it out and do the following changes:
- clear port interrupt register before ahci_channel_start() which enables
  interrupts
- wait 500ms after sata_reset_interface() before touching SERROR register.
  This is what seems to fix the issue I'm seeming on ESB2 controller.
- The 31s delay didn't cause the probe to fail because of a mismatch
  in loop index comparison; use a #define for delay after reset
  instead of numeric values, to avoid this kind of bugs in the
  future.
2010-03-10 19:23:57 +00:00
skrll
e52678ceba More comment improvement. 2010-03-10 18:53:40 +00:00
kiyohara
ca66853e78 Remove white-spaces. 2010-03-10 18:28:30 +00:00
kiyohara
5e9a0d7ca4 Remove unnecessary function declarations. 2010-03-10 18:18:47 +00:00
skrll
3a1cc5030b Comment improvements. 2010-03-10 18:17:42 +00:00
kiyohara
f71dd09b72 Remove white-spaces.
Indent.
2010-03-10 18:06:57 +00:00
kiyohara
5cf42f3927 Assorted spelling/capitalization fixes from Igor Sobrado in PR kern/22595.
Remove multiple njata.
Add uthum, udl, stuirda, uchcom, uberry, u3g, ugensa, uvideo.
2010-03-10 17:40:31 +00:00
kiyohara
e5ad71567c Assorted spelling/capitalization fixes from Igor Sobrado in PR kern/22595.
=============================================================================
2010-03-10 17:25:21 +00:00
msaitoh
ffa7a0568e 82576 is dual port, so check the FUNCID and increment the MAC address for
the 2nd port.
2010-03-10 15:04:04 +00:00
jruoho
2aba95133a Move the ACPI_ACTIVATE_DEV block to one place. While there, provide missing
prototype for a function, try to make the code more simple, guard against a
potential NULL pointer dereference, and improve printing.

No functional change intended.
2010-03-10 09:42:46 +00:00
jruoho
f26ee18df3 Some pretty printing for ACPIVERBOSE. 2010-03-10 08:12:44 +00:00