Commit Graph

111365 Commits

Author SHA1 Message Date
matt
87b1b3da19 No need to specify MEMSIZE since we read it from SYSCTL_CFG0. 2011-08-03 16:26:05 +00:00
matt
b8bb0531f6 Get memsize from SYSCTL_CFG0 register. 2011-08-03 16:25:02 +00:00
dholland
66d63879a2 Insert casts to off_t to avoid 32-bit multiplication overflow when
computing device offsets on 32-bit platforms. Should fix PR 45191.
2011-08-03 16:21:52 +00:00
oster
28c3372a95 Address part of PR kern/44972. From YAMAMOTO Takashi. Thanks! 2011-08-03 15:00:29 +00:00
oster
6f6c76259e Remove unused 'struct lwp *' from rf_getdisksize. No functional changes. 2011-08-03 14:44:38 +00:00
hannken
e8c9988bef Make whiteouts work on journaling ffs file system by adding the missing
UFS_WAPBL_BEGIN() / UFS_WAPBL_END() around CREATE and DELETE ops.

Fixes PR #44377 (union whiteouts don't work on ffs -o log)
2011-08-03 10:03:51 +00:00
mrg
59a63b01d0 add a little bit of DRM_NO_AGP to help build on ofppc 2011-08-03 06:42:59 +00:00
macallan
e7215d9880 don't try to a 'better' vertical frequency, it's almost certainly wrong with
flat panels
2011-08-03 05:27:08 +00:00
manu
32c00d6291 Make cp -p and mv preverve extended attributes, and complain if they cannot.
Also introduce library functions for copying extended attributes from one
file to another:
- extattr_copy_file, extattr_copy_fd, extattr_copy_link, with FreeBSD style,
  where a namespace is to be supplied
- cpxattr, fcpxattr, lcpxattr, with Linux style, where all namespaces
  accessible to the caller are copied, and the others are silently ignored.
2011-08-03 04:11:15 +00:00
enami
091d817e27 Replace the word NetBSD' with SuSE' in the rest of comments
for the cpp macro constatnt ELF_NOTE_SUSE_*.
2011-08-03 00:22:05 +00:00
jmcneill
b993a69649 Re-add include of "drvctl.h", as its removal a year and a half ago broke
drvctl DRVGETEVENT.
2011-08-02 21:23:24 +00:00
cliff
1608a97858 add JEDEC Mfgr ID for Macronix 2011-08-02 20:44:09 +00:00
cliff
c918b56802 remove unused option RTNORFLASH 2011-08-02 20:42:42 +00:00
pgoyette
39943f3c4f Allow multiple sdtemp sensors to attach, at all valid addresses 2011-08-02 18:52:35 +00:00
pgoyette
55cfe2860e Allow unit numbers to float, rather than tying to specific i2c address 2011-08-02 18:51:35 +00:00
pgoyette
aca9ef1449 Prevent multiple attachments at the same i2c address.
OK jmcneill@
2011-08-02 18:46:35 +00:00
joerg
9a72c11fab Remove a number of now unnecessary -no-integrated-as cases. 2011-08-02 17:22:51 +00:00
christos
3bcfc66d27 Add SuSE note 2011-08-02 16:44:01 +00:00
matt
6979407f79 Pass -mfix-loongson2f-jump -mfix-loongson2f-nop to assembler to workaround
loongson2f j[la]r issues.
2011-08-02 16:12:44 +00:00
pgoyette
5304bf6b4c When detaching the device, tear down its sysctl tree. 2011-08-02 14:06:15 +00:00
uebayasi
11f4f177a8 ncr53c9x was converted to use mutex(9), follow that. Fix DEBUG build too. 2011-08-02 05:17:18 +00:00
matt
cd13c53f92 Clear the BTB on user->kernel entry on Loongson2 2011-08-02 05:13:21 +00:00
matt
c55f1d7523 Add Loongson2 DIAG register definitions (partial) 2011-08-02 05:12:32 +00:00
uebayasi
3c7b60d1ca Include sys/simplelock.h to use simple_lock(); fix build. 2011-08-02 05:10:31 +00:00
cliff
32811a2a68 configure NOR flash partitions 2011-08-02 05:08:31 +00:00
uebayasi
34a5e45122 Define struct alpha_pci_conf_readwrite_args only once; fix build. 2011-08-02 04:45:10 +00:00
cliff
16639aa9d0 configure CFI NOR flash 2011-08-02 03:41:16 +00:00
cliff
136422be68 CFI NOR support for mips/ralink 2011-08-02 03:38:48 +00:00
cliff
779bf763e1 when unpacking CFI QRY data, byte order within a word is host order,
but order across words appears to be invariant across -el and -eb systems.
2011-08-02 03:37:25 +00:00
cliff
8956ec409a - CFI_0002_STATS no longer defined here
- add missing arg for do-nothing variant of CFI_0002_STATS_INIT()
2011-08-02 01:11:08 +00:00
matt
56a76c474b Change device name of pq3cfi to cfi.
Add cfi to P2020DS
Add ddrc
2011-08-02 00:27:42 +00:00
matt
2f23bdb126 Fix tpyo. 2011-08-02 00:25:38 +00:00
matt
b9dc213bc8 Add some more DDR register definitions 2011-08-02 00:23:34 +00:00
matt
f2875a1c9c MPC8544 don't any onchip irqs of 20/21 2011-08-02 00:22:02 +00:00
matt
0ccf0f52df Add simple driver to count single bit ECC errors. 2011-08-02 00:21:00 +00:00
matt
0fb6e91c9f Use <sys/ for bus.h and intr.h 2011-08-01 23:01:40 +00:00
macallan
65d8c9c17f appease gcc 4.5 2011-08-01 22:42:57 +00:00
macallan
cac9b89bf0 sanitize sysctl interface in order to appease gcc 4.5 2011-08-01 22:40:21 +00:00
joerg
4c8e861cc5 Remove redundant , after .balign. 2011-08-01 22:21:01 +00:00
matt
03c42f4d13 Add missing __KERNEL_RCSID 2011-08-01 17:05:16 +00:00
he
7508af7127 Need to include <sys/evcnt.h> explicitly to build this on at least amiga. 2011-08-01 15:26:31 +00:00
mbalmer
631d5867a0 According to the Oxford Dictionary of Etymology, a wether is a male sheep
or ram.
2011-08-01 12:28:53 +00:00
jmcneill
bd79b21e79 x86_reset: use acpi_reset instead of AcpiReset 2011-08-01 11:26:31 +00:00
jmcneill
048f3118a4 add support for reset registers in PCI config space 2011-08-01 11:25:59 +00:00
drochner
1ca3ef385b remove some bloat:
-cardbus doesn't use multiple interrupt lines like PCI, and it doesn't
 use machanisms like interrupt line register and swizzling -- no need
 to carry around dummy information, this is all dealt with by the
 bridge
 (I'm asking myself how "rbus_ppb" can work -- a bridge attached to
 cardbus just can't work like a normal PCI bridge as far as interrupts
 are concerned. I thing that should be a hardware specific driver
 because behavior is not covered by a standard.)
-cardbus always uses 3.3V -- no need for a variable to keep track
 of the voltage
2011-08-01 11:20:26 +00:00
drochner
f54d17f2c0 add an experimental implementation of PCI MSIs (Message Signaled
Interrupts). Successfully tested with hdaudio and "wpi" wireless
ethernet.
notes:
-There seem to be buggy chips around which announce MSI support
 but don't correctly implement it. Thus the final word whether MSIs
 can be used should be by the driver.
-Only a single vector is supported. For multiple vectors, the IDT
 allocation code would have to be changed. (And we would possibly
 run into problems due to the limited number of vectors supported
 by the current code.)
-The code is "#if NIOAPIC > 0" because it uses the ioapic_edge
 interrupt stubs. These actually don't touch any ioapic, so this
 is somewhat a misnomer.
-MSIs can't be identified by a "pin" but only by a cpu/vector
 pair. Common intr code soesn't deal well with this yet.
-Drivers need to take care of saving/restoring MSI data in the device's
 config space on suspend/resume.
2011-08-01 11:08:03 +00:00
drochner
0ce8c54d89 if checking whether an interrupt is shared, don't compare pin numbers
if it is "-1" -- this is a hack to allow MSIs which don't have a concept
of pin numbers, and are generally not shared
(This doesn't give us sensible event names for statistics display. The
whole abstraction has more exceptions than regular cases, it should
be redesigned imho.)
2011-08-01 10:42:23 +00:00
drochner
ee07511cd0 modify parsing of device names so that it can deal with names which
have numbers is it, eg "i915drm*"
2011-08-01 10:33:26 +00:00
jmcneill
6edd5ebb16 Fix AR_SREV_MERLIN_20 and AR_SREV_MERLIN_20_OR_LATER macros to match
rev 2.1 as well as 2.0, from FreeBSD. Fixes 5GHz mode on my 9280.
2011-08-01 10:21:32 +00:00
mrg
32d2ab845e fix the zx@fhc attachment. 2011-08-01 10:18:23 +00:00
mrg
a14d5855e1 use device_private(). thanks to jmcneill for pointing this out. 2011-08-01 08:36:39 +00:00
pgoyette
c3df63d89d Add build glue for modular spdmem(4) driver, and enable it 2011-08-01 03:51:05 +00:00
pgoyette
e3bc45f1ac Modularize the spdmem(4) driver 2011-08-01 03:49:52 +00:00
matt
1a16d9577d Support using MEMSIZE 2011-07-31 23:10:58 +00:00
jmcneill
7e89c84d93 x86_reset: If the FADT defines a reset register and ACPI was active, try
to use it to reset the system before attempting any other methods
2011-07-31 22:43:01 +00:00
jmcneill
2e5784d8be add Family14h (AMD Fusion) support 2011-07-31 22:04:07 +00:00
jakllsch
58cf20f9d6 simple_lock to mutex conversion. 2011-07-31 18:39:00 +00:00
jakllsch
ffb4d47223 The Fintek base address registers implement the bottom 3 bits as read/write,
but the address decoder in the chip ignores these three bits.  Do the same.
2011-07-31 18:23:46 +00:00
jym
5b7c93647d Fix typo in comment. 2011-07-31 18:00:54 +00:00
jmcneill
8037f64f1b build and install finsio module on i386 and amd64 2011-07-31 17:55:41 +00:00
jmcneill
c7c1db7e8e add finsio module glue 2011-07-31 17:54:01 +00:00
jmcneill
9f438526b6 modularize and recognize ASUS F8000 Super I/O chips 2011-07-31 17:53:26 +00:00
jakllsch
080ef1cab8 Restore original residue quirk proposed in PR#42225, it is necessary. 2011-07-31 16:32:02 +00:00
jmcneill
66ca8ad7c3 add smsc module glue 2011-07-31 16:19:21 +00:00
jmcneill
0d3a27d5dc modularize 2011-07-31 16:18:54 +00:00
jmcneill
afdad53ffc add module glue for dbcool 2011-07-31 16:05:28 +00:00
jmcneill
b27acdaa88 modularize 2011-07-31 16:05:01 +00:00
jmcneill
17204a8fdc module glue for sdtemp 2011-07-31 16:00:21 +00:00
jmcneill
4fc96f8387 add detach support, modularize, build with WARNS=4 2011-07-31 15:59:45 +00:00
jmcneill
6a11e87299 add rescan support 2011-07-31 15:58:25 +00:00
matt
30893a9102 Add support for a loongson2_subr.S. This is needed since that chip needs
special handling to manually flush the ITLB on TLB updates.
2011-07-31 15:39:28 +00:00
matt
e642dbad13 Add CPU_MIPS_LOONGSON2 flag (rather defining a CPU_ARCH_MIPS3_LOONGSON2).
This is much less intrusive and disruptive.
2011-07-31 15:36:28 +00:00
matt
8610b72b32 Add define for loongson2 DIAG register 2011-07-31 15:35:04 +00:00
uebayasi
c8c01f2329 Put back #include "ioconf.h" per popular demand. 2011-07-31 13:51:53 +00:00
uebayasi
7a93829794 Revert previous; s/kmem(9)/uvm_km(9)/ and comment why done so. Per request
from rmind@.
2011-07-31 13:41:30 +00:00
kiyohara
56e955160b s/MULTIPROCESOR/MULTIPROCESSOR/. 2011-07-31 10:00:52 +00:00
martin
eef17f7b6c Make uvmspace_exec() deal with procs that have no vmspace (yet) at all.
Greatly simplifies the upcoming posix_spawn implementation.
2011-07-30 20:05:46 +00:00
jmcneill
ebd9aba013 PR# port-i386/18818: cannot enter ddb with usb keyboard
- ohci: when polling, make sure sc_eintrs has the OHCI_WDH flag set
  otherwise ohci_intr1 won't actually read data
- usbdi: kick the host controller by calling its soft_intr callback when
  switching out of polling mode too

DDB with a USB keyboard works for me now with ohci.
2011-07-30 20:05:36 +00:00
martin
95377927e5 Get rid of #ifdef __sparc__ in uvm code - as noted by cgd back 1996,
now that we have __HAVE_CPU_VMSPACE_EXEC/cpu_vmspace_exec().
2011-07-30 19:29:12 +00:00
jakllsch
884fa40622 xboxcontroller(4) is now merged into uhidev(4). 2011-07-30 19:25:43 +00:00
rjs
b891527cb7 Use new style BPF calls. 2011-07-30 19:06:57 +00:00
jmcneill
4bc685899c add PCKBD_CNATTACH_MAY_FAIL to be consistent with i386 2011-07-30 18:41:34 +00:00
christos
44968cba76 Add an implementation of passive serialization as described in expired
US patent 4809168. This is a reader / writer synchronization mechanism,
designed for lock-less read operations.
2011-07-30 17:01:04 +00:00
christos
260ab6a882 since all the fields are unsigned, make the constants unsigned too. 2011-07-30 16:37:05 +00:00
christos
dfa4df9715 add a cast (for _LP64), and mark a variable unused. 2011-07-30 16:35:58 +00:00
jmcneill
f9818342b8 ehci_get_ownership: clear BIOS semaphore when setting OS semaphore, slow
down poll rate, and make sure to clear all SMI bits when we're done
2011-07-30 13:19:21 +00:00
jmcneill
b6403f9de0 remove xboxcontroller; use the uhidev driver instead 2011-07-30 12:19:12 +00:00
jmcneill
0ccce83148 add support for game controllers in "XInput" mode, they are basically
HID devices without a report descriptor
2011-07-30 12:15:44 +00:00
jmcneill
d2b1c474ba Add an FSILENT flag and use it to suppress "Medium Not Present" scsipi
spam when trying to access offline drives at boot.
2011-07-30 12:08:36 +00:00
uebayasi
4d58dccaac Correct sizes to pass uvm_km_free(9) in error paths. 2011-07-30 06:19:02 +00:00
uebayasi
2eba9539a6 Use kmem(9) to allocate per-cpu softint context. No functional changes. 2011-07-30 05:24:16 +00:00
jakllsch
87ca2c3e2f Add uplcom(4) and uftdi(4). 2011-07-30 04:53:30 +00:00
jakllsch
e2bd65b954 Add some additional consistency checking paranoia with KASSERT. 2011-07-30 04:42:03 +00:00
jakllsch
b29b61d940 Add interrupt info for 88F5182 gtidmac(4) and uncomment. 2011-07-30 04:34:17 +00:00
jakllsch
bb558b2010 printf fixes for ifdef NETIF_DEBUG 2011-07-30 04:18:38 +00:00
uch
b53b51d13e v7fs_lookup() fix return value. Pass t_vnops rename_dir(3)
v7fs_setttr() check credential. Pass t_unpriv owner
v7fs_rename() reload inode(v7fs_vnode_reload). Pass t_vnops rename_reg_nodir
2011-07-30 03:53:18 +00:00
uch
53172ceae2 When rename directory, check hierarchy. Pass t_vnops rename_dir(5) 2011-07-30 03:52:04 +00:00
uch
cba32d8fa9 Fix return vaule. Pass t_vnops:rename_dotdot, dir_noempty, rename_dir(6) 2011-07-30 03:51:53 +00:00
jakllsch
a6deec34f7 Fix printf formating in ifdef DEBUG sections. 2011-07-30 03:43:20 +00:00
riastradh
a09628eca6 In ufs_rename, declare oldparent and newparent ino_t, not int.
XXX There should be an automatic test for this somewhere.

ok dholland
2011-07-29 22:18:56 +00:00