Commit Graph

156671 Commits

Author SHA1 Message Date
wiz 5c09ab218d Add casts to debug printf so it also compiles on i386.
Noted by veego@
2007-02-26 21:35:44 +00:00
apb ea06fb3292 add etc/MAKEDEV.subr 2007-02-26 20:46:31 +00:00
apb 142606111b Provide a new MAKEDEV.subr file containing utility functions for
use by both MAKEDEV and MAKEDEV.local.  This allows MAKEDEV.local
to accept the same command line arguments as MAKEDEV.

The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl.

Replace the licence on MAKEDEV.local with a NetBSD licence, since I
rewrote the entire file.

Reviewed by christos and agc
2007-02-26 20:44:03 +00:00
ad cbe547e6a7 - Nuke mutex_owner()
- mutex_getowner() -> mutex_owner()
2007-02-26 19:11:28 +00:00
ad f944608c11 Add a comment. 2007-02-26 19:06:10 +00:00
ad 3d35c6bd90 Fix copyright at yamt's request. 2007-02-26 19:04:47 +00:00
pooka 03c5e15dc2 Refactor a few interfaces a bit to look more like fuse. fuse_args
is implemented as a very dummy version (i.e. totally unimplemented),
so some effort is still needed there.

After this change it is possible to compile and run ntfs-3g.  It
works read/write for ntfs images and shows no faults at least with
superficial testing.  I did not test it against a block device,
only an image.

Thanks to Tracy and Jason for help with the test image.
2007-02-26 15:57:33 +00:00
drochner 34d41b6ccb Another attempt to read string descriptors at once, this time with
the largest size which makes sense (254). See rev. 1.114-116 for
possible problems, but that was with len=255 which is an impossible
size for a string descriptor.
Someone with a "kue" please test this.
2007-02-26 15:16:59 +00:00
pooka 819ea01282 convert FREAD/FWRITE to O_RDWR-stuff in open 2007-02-26 15:09:19 +00:00
drochner 3ccaca911b -remove "bDescriptorSubtype" from usb_descriptor_t - this is not part
of the common USB spec
-Fix length of string descriptor: Descriptors have only a byte field
 for length, so 2*127+2 is already too much. Some devices obviously
 don't reply to string read requests with impossible length which
 happened if "sizeof(usb_string_descriptor_t) was used.
2007-02-26 13:58:36 +00:00
pooka 1b5f35a8e4 Implement readdir properly, or at least as close to possible to how
fuse does it: read directory completely into refuse buffers if starting
from read offset 0 and for later calls trickle results from the buffers
to the kernel without consulting the fuse file system.
2007-02-26 13:52:16 +00:00
drochner d91012791a Define a usb_cdc_descriptor_t which contains the class specific
"bDescriptorSubtype" field and change usb_find_desc()/usb_find_desc_if()
to use it. (The latter functions should not be used by generic code;
I've left the names for now for compatibility.)
Rename USBD_SUBTYPE_ANY to make clear that it is not generic.
2007-02-26 13:50:06 +00:00
drochner 47032dbc5e -g/c usbd_init()/usbd_finish() which don't do anything useful
-use <fs/unicode.h> for utf16->utf8 conversion instead of a private
 implementation
-streamline the COMPAT_30 utf16->ascii conversion a bit: remove
 length check (USB_MAX_STRING_LEN is too large to be useful) and
 replace array index arithmetics
2007-02-26 13:44:40 +00:00
drochner 515beb215f g/c calls to usbd_init()/usbd_finish() which don't have an effect 2007-02-26 13:38:09 +00:00
drochner 527f6a72af don't use usb_find_desc() which has some "subtype" semantics which
should not be used outside of device classes defining it
2007-02-26 13:36:01 +00:00
drochner a0afd1c3d9 Remove the check which disallows to connect a bus powered hub to another
bus powered hub. While one can interpret the spec that way, it is not
stated clearly, and is at most a side effect of power budgeting.
Also, there are devices which don't report correctly whether they
are self powered, so the check was unreliable.
2007-02-26 13:33:09 +00:00
drochner ff825e3a80 The manpage promises not to touch the device on USB_GET_DEVICEINFO.
Make it so.
2007-02-26 13:28:56 +00:00
drochner 8fd98300b1 -in root hub emulation, return a sane value as language code
-constify "methods" tables and (partly) descriptor templates
2007-02-26 13:26:45 +00:00
drochner f8b074ef41 allow the bus/pipes methods tables to be const 2007-02-26 13:23:59 +00:00
drochner c033a8d4ed Don't assume that usb_descriptor_t contains a bDescriptorSubtype field.
This is class specific and shouldn't be in a generic definition.
2007-02-26 13:14:11 +00:00
yamt c692a713b6 bump to 4.99.13; priority inheritance 2007-02-26 12:43:47 +00:00
drochner 33ac0de1eb -add __unused declarations to make it possible to use only half of it
-fix a bitmask (harmless) and remove two unnecessary ones
We should find a better location for that code!
2007-02-26 12:33:08 +00:00
drochner b68dbc6775 regen 2007-02-26 12:20:03 +00:00
drochner 8b8213b508 sync with lwp.h: _lwp_unpark_all() returns ssize_t 2007-02-26 12:19:00 +00:00
drochner 7fc72a801d remove references to old cabs() 2007-02-26 12:10:56 +00:00
drochner ce75a0ec7e regen after math.h change - now we've got _GLIBCXX_USE_C99_MATH 2007-02-26 11:57:52 +00:00
yamt a2a4c5824b add syncobj.h. 2007-02-26 10:55:36 +00:00
yamt 652511e445 sort. 2007-02-26 10:53:10 +00:00
yamt 3c4e459fcc move wchan_t and syncobj_t to a dedicated header to simplify dependencies.
fix "XXX wchan_t".
2007-02-26 10:50:22 +00:00
yamt e781af39bd implement priority inheritance. 2007-02-26 09:20:52 +00:00
ad 1458eba0f6 NetBSD JIHBED 2007-02-26 06:49:00 +00:00
ad 7545be4439 NetBSD: Dead on Target
-- Gimpy
2007-02-26 06:30:45 +00:00
mrg db2d8919f4 - don't call lwp_exit2(). ad@ says it isn't required anymore.
- load uvm.page_idle_zero with "ldub" instead of "ld", avoiding an
  unaligned access panic introduced since the int->bool changes.

now a -current kernel (both UP and MP) boot on my SS20 as long as
i have "options LOCKDEBUG" as well.
2007-02-26 06:06:32 +00:00
christos bac2433715 - use __inline like the other ports do.
- use __ in parameter names
- provide separate prototype lines.
2007-02-26 01:33:41 +00:00
christos c581ede63d Provide constants for the widths of the bitfields and use them. 2007-02-26 01:32:29 +00:00
christos 82708d0ba0 deal with the vax in a slightly disgusting way. 2007-02-26 01:29:25 +00:00
pooka a058b5a8e7 revert 1.34, as discussed with agc. It creates more problems than
it solves, namely breaks ~all fuse file systems.  Proper fix is known
but not yet implemented.
2007-02-26 00:25:40 +00:00
matt c77dd0a2cb .include <bsd.own.mk> 2007-02-26 00:17:37 +00:00
martin ade480cf0b Make it at least compile again (const propagation) 2007-02-25 21:06:57 +00:00
chris b07025ae18 Make this file compile with PCI_DEBUG defined. Needed to figure out why
the latest ABLE firmware was causing an interrupt mapping issue on cats.
It seems that the latest ABLE firmware is using native-PCI mode, rather
than compatibility mode, but doesn't setup an irq for us to use, so we fail
to map the interrupt handler.
2007-02-25 18:42:00 +00:00
darcy db4d899fe8 Add Canon PowerShot SD630 camera. 2007-02-25 14:22:58 +00:00
nonaka 8d4fbc454e Add PXA2x0 RTC driver. 2007-02-25 13:46:40 +00:00
tsutsui 772fa632f8 Hmm, comment out ciphy as well as vge(4). 2007-02-25 13:36:37 +00:00
tsutsui c5a66c49a3 Add ciphy at mii for vge(4). 2007-02-25 13:31:52 +00:00
yamt 38b7dcdca4 a test for priority inheritance. 2007-02-25 09:52:47 +00:00
taca 5696b4fe01 - Update release information:
bind 9.4.0
	ipf 4.1.19
	libpcap 0.9.5
	OpenSSL 0.9.8e
	tzcode/tzdata 2007b

- Update zlib's home page.
2007-02-25 07:29:39 +00:00
macallan 43d10d0613 bandaid for a problem exposed by newlock2
the kernel enables interrupts and then sets up clocks. If we catch a timer
interrupt in between and call hardclock() we'll explode so for now just
bail when we get one while cold
2007-02-25 06:03:32 +00:00
dyoung 58d89d0317 Make the mac68k 'tags' target work. 2007-02-25 05:47:55 +00:00
uwe e56125c356 G/c debugging printf (hi, macallan!). 2007-02-25 05:04:28 +00:00
uwe e918be7b93 Add missing newlines to debug messages. 2007-02-25 04:46:32 +00:00