Commit Graph

166300 Commits

Author SHA1 Message Date
elad
aabadd15ea Forgot to commit this in latest commit, spotted by hannken@.
Adapt to "CAN" removal...
2008-01-23 17:52:32 +00:00
dyoung
d8e12ce795 Fix more fall-out from extracting ifioctl_common(): don't return
ENETRESET from ifioctl().
2008-01-23 16:51:19 +00:00
elad
3c22fac894 Bump date. 2008-01-23 15:20:54 +00:00
elad
c27d5f30b6 Tons of process scope changes.
- Add a KAUTH_PROCESS_SCHEDULER action, to handle scheduler related
    requests, and add specific requests for set/get scheduler policy and
    set/get scheduler parameters.

  - Add a KAUTH_PROCESS_KEVENT_FILTER action, to handle kevent(2) related
    requests.

  - Add a KAUTH_DEVICE_TTY_STI action to handle requests to TIOCSTI.

  - Add requests for the KAUTH_PROCESS_CANSEE action, indicating what
    process information is being looked at (entry itself, args, env,
    open files).

  - Add requests for the KAUTH_PROCESS_RLIMIT action indicating set/get.

  - Add requests for the KAUTH_PROCESS_CORENAME action indicating set/get.

  - Make bsd44 secmodel code handle the newly added rqeuests appropriately.

All of the above make it possible to issue finer-grained kauth(9) calls in
many places, removing some KAUTH_GENERIC_ISSUSER requests.

  - Remove the "CAN" from KAUTH_PROCESS_CAN{KTRACE,PROCFS,PTRACE,SIGNAL}.

Discussed with christos@ and yamt@.
2008-01-23 15:04:38 +00:00
gson
b8e6012764 Don't enter an infinite loop in audio_read() when the sc->sc_rustream
buffer is full.  Fixes kern/34659.
2008-01-23 14:14:55 +00:00
joerg
4963c291d7 Fix a logic bug when handling multiple continious misaligned mbufs. 2008-01-23 13:05:42 +00:00
dyoung
993dda8c48 Make this compile again: delete an unused variable from ae_ioctl(). 2008-01-23 05:24:28 +00:00
dyoung
3a08c4a544 Make these compile again by #including <prop/problib.h>. 2008-01-23 05:23:59 +00:00
jmcneill
157e8edd73 Add XBOX specific device drivers and options. 2008-01-23 00:12:03 +00:00
jdc
e75a1cd5b7 Set the correct offset when using VLAN's. 2008-01-22 23:19:14 +00:00
dyoung
aa385448f5 Functional: return ENTRESET from ifioctl_common(), if SIOCSIFCAP
changed anything.

Cosmetic: shorten staircase.
2008-01-22 22:26:30 +00:00
dyoung
94e4ecb4ba Add missing break statement. 2008-01-22 22:09:59 +00:00
reinoud
6383f534f7 Remove extra '(' that prevented kernel with UVMHIST to be compiled 2008-01-22 21:36:23 +00:00
dyoung
81e0f3dc3d Take two steps toward adding and deleting link-layer addresses.
1 Extract subroutine if_dl_create() from if_alloc_sadl().
  if_dl_create() allocates a link-layer ifaddr.

2 Extract subroutine ifioctl_common() from ifioctl().  ifioctl_common()
  will be the basis for an ifnet "superclass" whose functions
  drivers may inherit.  Very simple drivers may set ifnet->if_ioctl
  = ifioctl_common.  More sophisticated drivers will set ifnet->if_ioctl
  = driver_ioctl.  driver_ioctl() will call ifioctl_common() to
  re-use the common code.
2008-01-22 16:25:15 +00:00
joerg
569d6e3d6c Include sys/simplelock.h for the sake of pm_lock. 2008-01-22 15:25:39 +00:00
joerg
a185f9743d Missing assym.h dependency. 2008-01-22 15:24:50 +00:00
joerg
c1c99026f3 Fix up my last commit. statintr and a misnamed variable slipped through. 2008-01-22 14:11:02 +00:00
yamt
d1dc67ef57 identifycpu_cpuids: fix ids for multicore cpus. 2008-01-22 12:55:24 +00:00
joerg
fe9a3139bc Fix LAPIC_LEVEL_MASK and related defines. 2008-01-22 12:42:08 +00:00
joerg
2e737299d6 GC i8254_microtime. 2008-01-22 12:41:38 +00:00
nakayama
da1555e6a7 Search files in arch/sparc64/atomic before arch/sparc/atomic in case of
sparc64 32-bit kernel.

Make sparc64 32-bit kernel works again.
2008-01-22 12:34:58 +00:00
nakayama
b4ed00a22d Use __arch64__ instead of __sparc64__, since -D__sparc64__ is appended
to build option of sparc64 32-bit kernel.
2008-01-22 12:32:07 +00:00
he
e96f213c26 Delete a now-unused local variable. 2008-01-22 11:49:54 +00:00
jdc
eb6a063cb6 Also count excess or late collisions as output errors in gem_tint().
Count receive errors (as input errors) in gem_rint().
2008-01-22 09:42:06 +00:00
pooka
2310c71b91 Until debugging threaded programs in NetBSD is fixed, supply the
cpp option RUMP_WITHOUT_THREADS as a workaround.  If defined, it
makes rump itself operate single-threaded and prevents kthread_create()
from working.
2008-01-22 09:23:39 +00:00
uebayasi
cd0b25a26a Add uhmodem.0 and uhmodem.4. 2008-01-22 06:58:13 +00:00
jmcneill
3a8064081d Note addition of ossaudio support to COMPAT_LINUX32. 2008-01-22 01:23:36 +00:00
lukem
35ec5a7f7a Set the permissions of /etc/openssl/private to 0700.
This makes sense and matches the behaviour of many other systems.
PR misc/18258.
2008-01-22 01:21:04 +00:00
jmcneill
c0e43ab0d6 Add ossaudio support for COMPAT_LINUX32, with help from mrg. With this
change, audio now works on amd64 with native firefox, nspluginwrapper, and
the 32-bit linux flash binaries.
2008-01-22 01:05:05 +00:00
pooka
c40d447080 Sprinkle comments about um_lock status on function entry and exit.
No functional change.
2008-01-21 23:36:26 +00:00
christos
428727f47f PR/37838: Stathis Kamperis: proplib documentation enhancements 2008-01-21 22:15:03 +00:00
ichiro
a7889b7caa enable 'uhmodem' 2008-01-21 22:12:00 +00:00
dyoung
fbc39b6d24 Briefly describe elanpex(4) and elanpar(4). Update AUTHORS section. 2008-01-21 22:00:37 +00:00
dyoung
181cb90ac3 Remove elanopt(4) cross-references. 2008-01-21 21:51:57 +00:00
xtraeme
74470d7e13 Fix style in all the previous entries (hi garbled):
- Entries should end with a dot.
- Entries should start with a capital letter.
- Entries should not have extra whitespaces.

PLEASE FOLLOW THE STYLE IN FUTURE COMMITS TO THAT FILE.
2008-01-21 21:32:41 +00:00
dyoung
099d1a6a37 #include <stdbool.h> for bool, instead of typedeffing our own. 2008-01-21 20:47:38 +00:00
dyoung
1ebd488e32 #include <stdbool.h> for bool. 2008-01-21 20:46:58 +00:00
dyoung
5448ecad57 #include <stdbool.h> for 'bool', so that this kernel groveller will
hopefully compile again.
2008-01-21 20:34:13 +00:00
dyoung
af289dd714 struct route is part of the kernel ABI (!!!), so move it back
outside of #ifdef _KERNEL.  #include stdbool.h if !_KERNEL.
2008-01-21 20:25:33 +00:00
dyoung
58eb3d1bbb Move struct route inside of #ifdef _KERNEL to protect userland from
it.
2008-01-21 20:04:37 +00:00
joerg
b120166d53 in_cksum.S needs assym.h. 2008-01-21 19:39:28 +00:00
garbled
5f31e21d22 Add all the changes from the ppcoea-renovation branch, and a few more
that have transpired since then.
2008-01-21 18:16:12 +00:00
pooka
65a36d9ef8 In case cv_timedwait() gets ticks == 0, make sure we sleep eternally
(or at least until wakeup) instead of immediately waking up.

In other words, fix this after it broke when another piece of the
code was fixed.  Ain't programming fun?
2008-01-21 17:56:48 +00:00
christos
0f85ac800d Fix segmentation fault with printf("%*"); from Jukka Salmi 2008-01-21 17:18:06 +00:00
xtraeme
80947307d3 Fix uhmodem(4) entry: the entries must be started with a capital letter. 2008-01-21 14:54:13 +00:00
ichiro
7c8ed48417 add uhmodem(4) for Huawei E220 wireless modem 2008-01-21 13:42:04 +00:00
ichiro
2e9fa9fff0 make compile 2008-01-21 12:16:31 +00:00
ichiro
c6061e7174 change umass quirks logic in USB_MATCH()
PR/37687 from Yojiro UO
2008-01-21 12:11:21 +00:00
ichiro
817e003a02 add full support device driver for Huawei E220 wireless modem
PR/37692 from Yojiro UO
---
uhmodem: device driver for huawei 3G wireless modem

* what it is?

A device driver for huawei 3G wireless modem, E220 and its valiations.

The devices are very simuler to ubsa device, but they need special care
to use as modem device.
This patch introduce "uhmodem (USB Huawei modem)" for the devices.
A uhmodem device has two com devices and one USB mass strage device.
The driver enable to use all of them.

* dmesg:
uhmodem0 at uhub0 port 1 configuration 1 interface 0
uhmodem0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
uhmodem0: mass storage only mode, reattach to enable modem
uhmodem0: at uhub0 port 1 (addr 2) disconnected
uhmodem0 detached
uhmodem0 at uhub0 port 1 configuration 1 interface 0
uhmodem0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
ucom0 at uhmodem0 portno 0: modem
ucom1 at uhmodem0 portno 1: monitor
umass0 at uhub0 port 1 configuration 1 interface 2
umass0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
cd0 at scsibus0 target 0 lun 0: <HUAWEI, Mass Storage, 2.31> cdrom removable
2008-01-21 11:36:46 +00:00
dyoung
654775cc67 Remove an unnecessary check that yields a spurious EINVAL during
initialization.
2008-01-21 11:32:12 +00:00