Commit Graph

156758 Commits

Author SHA1 Message Date
macallan
57fb2c65f9 enable ioctl(OFIOCSET) so eeprom can actually change PROM settings on
OpenFirmware machines
2007-02-28 20:33:50 +00:00
macallan
12dd6f9c02 add OF_setprop() 2007-02-28 20:30:57 +00:00
apb
2b64520a8c Avoid using dirname(1), which is not available in installation
ramdisk images.
2007-02-28 19:45:37 +00:00
tsutsui
a111aec3cd Apply patches which may fix RX stall problem on nfe(4):
- make DMA descriptors volatile to avoid possible unintended reordering
  which might cause some race conditions
- process interrupts until all NFE_IRQ_WANTED bits are handled

and also put misc fixes:
- return 1 and call nfe_start() in nfe_intr() only if any own interrupts
  are actually handled
- use bus_dmamap_load_mbuf(9) for RX mbufs rather than bus_dmamap_load(9)
  with mtod(9) and MCLBYTES
- check sc->txq.queued to see if TX descriptors are queued or handled
  in nfe_start() and nfe_txeof()
- use proper BUS_DMASYNC_{PRE,POST} ops
- prepare and use NFE_[RT]X_NEXTDESC() macro
- rename NFE_TX_TCP_CSUM to NFE_TX_TCP_UDP_CSUM since it also enables
  hardware udp4csum-tx for UDP4 packets
- some minor optimization
- misc KNF

Tested and confirmed by matthew green by
"to send >25MB/sec to nfe0 for over one hour,"
and also tested by me (with light TRX load on 100baseTX though)
for a month.
2007-02-28 17:40:11 +00:00
xtraeme
942dafa618 Add missing NetBSD RCS id. 2007-02-28 16:28:25 +00:00
xtraeme
0ee4765917 Add /usr/include/fuse_opt.h 2007-02-28 16:23:22 +00:00
xtraeme
c7b91b596f * Move fuse_opt* defs and prototypes into fuse_opt.h.
* Move fuse_opt* funcs from refuse.c into refuse_opt.c.

Implement fuse_opt_parse() and fuse_opt_match(). And make the other
functions just dummy, always returning 0 (I added debugging printfs
to see what the application is trying to do).

For now there are two things that do not work in fuse_opt:

	* options accepting arguments, i.e -otimeout=%u or -ofile=%s.
	* options without arguments are not enabled, just parsed.

At least now curlftpfs works, even with verbose mode! :-)

Ok'ed by pooka.
2007-02-28 16:23:00 +00:00
apb
aba6b126c7 Mention MAKEDEV.subr 2007-02-28 13:18:43 +00:00
apb
11b77839b6 s/MAKEDEV.tmpl/MAKEDEV.subr/ in a comment 2007-02-28 13:14:38 +00:00
skrll
3d26910b10 sun2 mknative output for gdb6. 2007-02-28 08:12:13 +00:00
mgrooms
adf474a143 Add logic to allow ip address ids to be matched to ip subnet ids when
appropriate.
2007-02-28 05:36:45 +00:00
thorpej
09c5f9cc49 TRUE -> true, FALSE -> false 2007-02-28 04:21:51 +00:00
pooka
81bb031653 Make wait for the user file server PCATCHable. This makes it
possible to recover the system by just killing processes in case
a file server manages to recurse into itself either by fault of
file server implementation or by pilot error.  The downside is that
the code is extremely hard to follow and practically screams out
for newlock2 (in addition to screaming "bug here").  The whole
PCATCH nonsense and induced megacomplexity can hopefully be avoided
in the future by tweaking other parts of the implementation.
2007-02-27 23:43:23 +00:00
degroote
768d7886ca Initialize fast_ipsec entry in the protocol switch with structure
initializers as other entries.
2007-02-27 22:19:05 +00:00
pooka
d89ebe7462 * remove rogue header
* better variable name to avoid shadowing global symbol name
2007-02-27 22:03:45 +00:00
he
5f00d6d5a0 Install pxeboot_ia32.bin as part of a "make release" on i386 and amd64. 2007-02-27 18:17:28 +00:00
ad
b89010bfa3 Destroy the hash locks on final unmount. 2007-02-27 16:11:51 +00:00
ad
a76d1d298c Further avoid unnecessary trips through lwp_userret()/issignal(). 2007-02-27 15:19:54 +00:00
yamt
c574bfa378 typedef pri_t and use it instead of int and u_char. 2007-02-27 15:07:28 +00:00
ad
8c21785088 Note the ad-audiomp branch. 2007-02-27 14:50:40 +00:00
pooka
ad70c5ab2e one more size_t -> uint32_t 2007-02-27 14:17:14 +00:00
apb
e6286cf4b0 kernel after newlock2 needs libpthread after newlock2.
Text reviewed by martin.
2007-02-27 13:42:35 +00:00
pooka
cbb615f4db size_t -> uint32_t cleanup to make LP64 build
noticed by wiz
2007-02-27 13:28:39 +00:00
ad
487f0ed78f Remove ref to SA. 2007-02-27 12:42:00 +00:00
ad
72b15048da turnstile_wakeup(): on a !MULTIPROCESSOR kernel the LWP is already locked. 2007-02-27 12:17:55 +00:00
yamt
5057834077 nfs_getpages: fix an inverted condition in rev.1.147. 2007-02-27 10:03:56 +00:00
tron
35ce54d7b7 Update release engineering member list with reality. 2007-02-27 09:06:17 +00:00
garbled
a330515740 Add /usr/include/prep/nvram.h 2007-02-26 23:57:19 +00:00
garbled
cba36b0811 add nvram device 2007-02-26 23:54:48 +00:00
garbled
7b388aeeb7 Finish the code in the prep nvram driver that makes it an actual device
(/dev/nvram) and implement all the associated ioctls fully.  Tested with
a hacked up copy of eeprom(8).  Right now it can only be used to see the
nvram GEV contents, not actually edit them.  Will do that later some day.
2007-02-26 23:53:12 +00:00
cube
f361d6e858 Remove unnecessary output and reduce verbosity in dmesg(8) output. That
makes the output consistent with etherip(4).

Suggested by Nino Dehne on current-users@.
2007-02-26 23:52:18 +00:00
skrll
15e7f1810b Pass the LWP of the ptid in PT_{GET,SET}REGS calls.
Pulled across from the changes to gdb5.3.
2007-02-26 23:11:01 +00:00
apb
d1c6bc87d3 Add suggestions for creating device nodes on a foreign server
used by a diskless NetBSD client.
2007-02-26 22:54:40 +00:00
apb
8048a35610 Add SEE ALSO reference to the new MAKDEV.local(8) man page.
Also mention that MAKEDEV invokes MAKEDEV.local with the "all" argument.
2007-02-26 22:37:57 +00:00
apb
234c7e3957 Add a man page for MAKEDEV.local(8), and a link for makedev.local(8). 2007-02-26 22:35:04 +00:00
agc
803c0cb0e3 For just now, just use "puffs:refuse" as the file system name - this will
be revisited when thee fuse_args parsing is revisited.
2007-02-26 22:28:11 +00:00
matt
d6dd160750 Make -p, -l, and -c exclusive (any one turns off the other two). 2007-02-26 21:56:17 +00:00
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