Commit Graph

63380 Commits

Author SHA1 Message Date
jdolecek 075efbb3db desupport LMRESERV_O, anything using it doesn't have chance of working
anyway due to numerous kernel structure changes
2003-04-10 19:06:04 +00:00
christos 6dbb5081d5 RP/21088: Jesse Off: Return ENOBUFS instead of EINVAL when sbappend fails. 2003-04-10 18:55:11 +00:00
thorpej a5bb7e6494 Group things in this file a bit more logically. 2003-04-10 18:04:20 +00:00
scw 201693cb1b Re-read L2CR after enabling the L2 cache to avoid returning without
printing the cache details.
2003-04-10 16:07:15 +00:00
he ca16636def Match the "extra" spaces emitted in the load map by the new binutils,
but also match what the old binutils emitted as well.
2003-04-10 15:36:54 +00:00
scw dd3614f13a When attaching, make sure the "Reject Broadcast Mode", "Promiscuous Mode"
and "Pass Bad Frames" bits in the EPCR register are clear.

This works around a problem where firmware sets RBM for some reason before
handing control to the NetBSD kernel.
2003-04-10 15:23:19 +00:00
he 3ace5bb166 Expand the miniroot by 256KB, so that this builds again. 2003-04-10 15:01:52 +00:00
dsl cff85b34d5 Fix prototypes of null_read and null_write, change to return errno values.
This code can't actually be used anywhere!  I don't think its obvious use
would compile!
2003-04-10 14:44:05 +00:00
dsl 4a16b1cc1d Add FS_DEF() and FS_OPS() defines to save typing (and errors) elsewhere.
Kill __P() and argument names in prototypes.
(approved by christos)
2003-04-10 14:39:46 +00:00
erh 52bbca5b58 Make sure the directory is still mounted before looking things up in it.
Fixes PR kern/5683.
2003-04-10 07:26:52 +00:00
simonb 761de7345c '#if 0' out a variable that is currently only used in other '#if 0'd out
code.
2003-04-10 04:15:38 +00:00
simonb 40149dc0bb Remove an assigned-to but unused variable. 2003-04-10 04:11:50 +00:00
simonb 430903deae rf_MakeLockTable() and rf_ShutdownStripeLocks() are used only in
rf_stripelocks.c - make them static functions.
2003-04-10 04:10:17 +00:00
simonb d0f1ac2965 Remove an assigned-to but unused variable. 2003-04-10 03:36:02 +00:00
christos 1af07f5803 Add MIIF_FORCEANEG from Martin Husemann 2003-04-10 01:58:21 +00:00
thorpej a10453bb40 Add support for using cached mbuf and cluster phys addrs. 2003-04-09 23:32:03 +00:00
matt dd1424e7ac Add POOL_VTOPHYS. Change vtophys to return -1 if pmap_extract fails.
(callers of vtophys should always supply a valid VA so that
pmap_extract should never fail).
2003-04-09 22:37:32 +00:00
matt c72503e1bd Add some debug printf's. 2003-04-09 22:35:21 +00:00
matt b4c7fb17b2 Cleanup dmamap_sync a bit and add a few more comments. Add support for
cached physaddr's in mbufs.
2003-04-09 22:28:56 +00:00
nathanw e9ab31d743 POOL_VTOPHYS: Cast argument to ALPHA_K0SEG_TO_PHYS() to vaddr_t to
prevent gcc complaining about bitwise operations on pointers.
2003-04-09 22:14:31 +00:00
thorpej 9bd03b1f69 Cast the arg to MIPS_KSEG0_TO_PHYS() in POOL_VTOPHYS() (thanks, nathan!). 2003-04-09 22:10:58 +00:00
thorpej 03befad98b In uvm_map_clean(), only call pgo_put if the object has one.
From Quentin Garnier <quatriemek.com!netbsd>.
2003-04-09 21:39:29 +00:00
kleink 27d8588746 Change the strerror() string for ERANGE consistently to "Result too
large or too small" and reword its intro(2) description to reflect
the present use for non-numerical out-of-range errors; resolves
Andrew Brown's PR standards/21004, the discussion of which was
dramatically sped up by repeated whipping from Perry Metzger. :-)
2003-04-09 21:36:28 +00:00
thorpej df25ffa39a Bump to 1.6R -- mbuf and pool changes. 2003-04-09 19:28:06 +00:00
jdolecek d135e24e2d fix couple more simple lock issues on smbfs_close() code path:
* vinvalbuf needs to be called without simplelocks held
* need to release the lock in opencount > 0 case
* need to release the lock before smbfs_findclose(), since that
  can send a request to SMB server and attempt to pool_get() a request buffer
problem path found & testing by Martin Husemann, fix adresses PR kern/21067
2003-04-09 18:57:29 +00:00
thorpej bcea7d5f28 Use cached physical addresses for mbufs and clusters to save having
to extract the physical address from the virtual.

On the ARM, also use the "read-only at MMU" indication to avoid a
redundant cache clean operation.

Other platforms should use these two as examples of how to use these
new pool/mbuf features to improve network performance.  Note this requires
a platform to provide a working POOL_VTOPHYS().

Part 3 in a series of simple patches contributed by Wasabi Systems
to improve network performance.
2003-04-09 18:51:35 +00:00
jdolecek 1f29707d43 move ntfs_remove() to be together with the other dummies - easier to c&p
eventually
2003-04-09 18:46:47 +00:00
jdolecek 6810b56243 add dummy link, rename, mkdir, rmdir vnode ops, which release the
appropriate vnodes before failing with EOPNOTSUPP - this is necessary
to not deadlock later
2003-04-09 18:41:05 +00:00
thorpej f775de9f61 * Use a pool_cache constructor to record the physical address of mbufs
in the mbuf header.
* Use the new cached paddr feature of the pool_cache API to record
  the physical address of mbuf clusters.  (We cannot use a ctor for
  clusters, since clusters have no constructed form; they are merely
  buffers).

Bus_dma back-ends may use the cached physical addresses to save having to
extract the physical address from virtual.

* Provide space in m_ext recording the vm_page *'s for an SOSEND_LOAN_CHUNK-
  sized non-cluster external buffer.  Use this in the sosend_loan code to
  save having to extract the physical address from virtual and then look
  up the vm_page *'s.

* Provide an indication that an external buffer is mapped read-only at
  the MMU.  Set this flag for the external buffer in the sosend_loan
  case, since loaned pages are always mapped read-only.  Bus_dma back-ends
  may use this information to save cache flushing, since a cache flush of
  a read-only mapping is redundant on some architectures (the cache would
  have already been flushed when making the mapping read-only).

Part 2 in a series of simple patches contributed by Wasabi Systems
to improve network performance.
2003-04-09 18:38:01 +00:00
thorpej a0aee79a1d Add the ability for pool caches to cache the physical address of
objects.  Clients of the pool_cache API must consistently use
the "paddr" variants or not, otherwise behavior is undefined.

Enable this on Alpha, ARM, MIPS, and x86.  Other platforms must
define POOL_VTOPHYS() in the appropriate manner in order to enable
the feature.

Part 1 of a series of simple patches contributed by Wasabi Systems
to improve network performance.
2003-04-09 18:22:13 +00:00
thorpej fe57487140 Remove something accidentally included in last commit. 2003-04-09 18:17:34 +00:00
thorpej 7360657293 Tweak the way the pagesize-related variables are set:
* Remove DEFAULT_PAGE_SIZE.  We don't use PAGE_SIZE the way Mach did.
* In uvm_setpagesize(), if we are called with uvmexp.pagesize == 0,
  then assert that PAGE_SIZE != 0 (i.e. a constant), and set uvmexp.pagesize
  accordingly.
* Provide defaults for MIN_PAGE_SIZE and MAX_PAGE_SIZE if not defined
  by <machine/vmparam.h>.  If PAGE_SIZE is not a constant, MIN_PAGE_SIZE
  and MAX_PAGE_SIZE must be provided.
* If MIN_PAGE_SIZE and MAX_PAGE_SIZE are not equal (i.e. PAGE_SIZE may
  not be a constant in all configurations), then ensure that PAGE_SIZE
  and friends expand to variable references for LKMs.
2003-04-09 16:34:10 +00:00
thorpej d154229cf2 Don't define PAGE_SIZE, etc. in terms of NBPG, rather use the same
logic as used by <machine/param.h> to define constant PAGE_SIZE if
possible.

Also define the minimum and maximum PAGE_SIZE that might appear in
any given configuration (4K and 8K, respectively).
2003-04-09 16:27:06 +00:00
thorpej efdd83f440 Move CPU configuration predicates to <machine/cpuconf.h>. 2003-04-09 16:22:33 +00:00
jdolecek 011c1952fd #if 0 some no longer used macros; keep around for refence 2003-04-09 16:18:56 +00:00
jdolecek af5ced0d31 replace VOP__UNLOCK(), VN_LOCK(), VGET() macros with the real thing, to
imporove readability
g/c some non-NetBSD code for same reason
2003-04-09 16:18:17 +00:00
jdolecek 81d7a920df print some potentially useful stuff in ntfs_print()
replace the VOP__UNLOCK() macros with VOP_UNLOCK() directly - it just
  obfuscates the code
similarily for VN_LOCK()->vn_lock()
unlock dvp before ntvattrget call in ntfs_lookup() in '..' case, not after
fix problem in ntfs_lookup() where PDIRUNLOCK was not set in one code path
  after unlocking parent directory vnode
2003-04-09 16:12:18 +00:00
jdolecek a0e0f99677 add real ntfs remove vnode op, which releases vnode locks on parent directory
and the file vnode before returning EOPNOTSUPP
fixes PR kern/19595 by Erik Berls
2003-04-09 16:02:18 +00:00
matt 4daebcbff5 Make the imask_t typedef a struct rather than a naked array. The attribute
on the array typedef was contaminating other u_int32_t naked arrays and
affecting their alignment.
2003-04-09 15:44:26 +00:00
yamt 65e3d14a8a rename a very confusing variable name.
(must_commit -> stalewriteverf)
2003-04-09 14:30:30 +00:00
yamt b90af31ce6 when commit failed and fall to write, re-set 'off' and 'cnt'
because it can be changed in 'needcommit' path.
2003-04-09 14:27:58 +00:00
yamt 2cca2b5641 update a comment to follow the previous change. 2003-04-09 14:24:32 +00:00
yamt 9b96b4ab78 make per-iod datas together. 2003-04-09 14:22:33 +00:00
yamt 0dff798bde rename nm_verf to nm_writeverf because it's confusing with nm_verf{str,len}. 2003-04-09 14:21:24 +00:00
itohy 3803387e1f Support UFS2 format for FFS. 2003-04-09 12:57:13 +00:00
yamt e5655297db remove B_NEEDCOMMIT as it's no longer used. 2003-04-09 12:55:50 +00:00
drochner e9857b349d catch up with "struct consdev" change 2003-04-09 11:04:41 +00:00
thorpej 4d402f3790 Fix a typo. 2003-04-09 02:34:31 +00:00
christos e3eb9da887 regen 2003-04-09 02:10:57 +00:00
christos 81e522b516 A cardflash NE2000 from Michael Francini francini at mindspring dot com. 2003-04-09 02:09:55 +00:00
thorpej a9caf2cae5 G/c the traceq; nothing uses it. 2003-04-09 01:55:14 +00:00
thorpej 0871fe346f Use PAGE_SIZE rather than NBPG. 2003-04-09 01:54:42 +00:00
thorpej 375bf0732b Need <uvm/uvm_extern.h>. 2003-04-09 01:35:12 +00:00
thorpej 5051d1c544 Use PAGE_SIZE rather than NBPG. 2003-04-09 00:39:38 +00:00
thorpej 24a4b8faa6 Use PAGE_SIZE rather than NBPG. 2003-04-09 00:28:28 +00:00
thorpej cf9d21bf8e Use PAGE_SIZE rather than NBPG. 2003-04-08 23:39:14 +00:00
thorpej 04269f6445 Make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK compile time constants; we only
support 8K page models at the moment anyway.
2003-04-08 23:35:48 +00:00
thorpej 9a8042f242 Use PAGE_SIZE rather than NBPG. 2003-04-08 22:57:53 +00:00
thorpej 7a22c14e21 Don't use NBPG. 2003-04-08 22:37:52 +00:00
thorpej 106ae5d65e Use PAGE_SIZE rather than NBPG. 2003-04-08 22:33:33 +00:00
uwe b0645fe98e Add names for v8 traps (cf page 76, table 7-1).
Fix coprocessor disabled/exception traps that were placed incorrectly:
cp_disabled == 0x24 (0t36) was placed at 0x36, ditto for cp_exception.
2003-04-08 21:56:31 +00:00
jdolecek c2704241db add a comment on SMB packet PID purpose to smb_rq_new()
adjust the commented out code to be compilable, but keep using '1' as the PID
2003-04-08 21:10:33 +00:00
jdolecek 1ae0467918 back to passing magic '1' as lock id in smbfs_advlock() - the number
is used to setup a 'PID' for the lock; if a SMB write request is sent
to server, it returns EDEADLK if it doesn't have same PID. since we
use '1' as request PID (see smb_rq_new()), we must use '1' here too,
for now
add a comment what is the ID used for, to avoid similar mistake in future

this partially back off rev 1.5, and makes advisory locking work
on SMB shares mounted from Windows again (sigh)
2003-04-08 21:06:33 +00:00
thorpej 4c08dfb615 Remove LINKENTRY and LOADADDRESS vars; it's all handled by the linker
script on evbarm platforms.
2003-04-08 20:50:05 +00:00
thorpej 4818d283ff Factor out common INSTALL kernel config fragments into a new INSTALL
file.  Add INSTALL kernels for the ADI BRH, IQ80310, and IQ80321.
2003-04-08 20:49:01 +00:00
thorpej f26807bd26 Add a selection of storage devices, and also build netbsd-sd0 and
netbsd-wd0 kernels.
2003-04-08 20:48:03 +00:00
matt 46acdfd875 Deal with discovery strangeness/timing issue. Sometimes the Ownership bit
on descriptor doesn't get reset so look beyond to the next descriptor to
see if it's been returned.  If it has, then just process the current one.
2003-04-08 19:37:17 +00:00
matt eb675c41cf Select MPSC console and the proper PCI slots. Use -D__boardtype__ instead
of -Dboardtype.
2003-04-08 19:35:24 +00:00
jdolecek a66d80ca2a smbfs_remove(): undo broken condition change from rev. 1.3 - apparently
the condition was changed to be true when the file _should_ be removed,
but ended up wrong way

this fixes a problem where it wasn't possible to remove regular files
from mounted smbfs share
2003-04-08 19:01:00 +00:00
abs 89c93ddc45 Note that BSDI binaries require COMPAT_12, COMPAT_13, and COMPAT_43.
Addresses PR/3553, PR/6872, and PR/8029. Does not address PR/7262
Also add some missing COMPAT_15 entries.
2003-04-08 18:58:19 +00:00
jdolecek 3068339e18 fix locking issues uncovered by LOCKDEBUG, reorganize code a bit so that
even the initial directory notify request is sent by smbkq thread
problems found during LOCKDEBUG hunt, adresses PR kern/21067 by Martin Husemann
2003-04-08 18:16:01 +00:00
jdolecek dfc728f814 fix pasto in smb_rq_setcallback(), mistakely used SMBRQ_SLOCK() instead
of SMBRQ_SUNLOCK()
found during LOCKDEBUG PR kern/21067 hunt
2003-04-08 18:13:41 +00:00
jdolecek 9e423ce633 release the vnode interlock sooner in smbfs_close[l](), before calling
smbfs_smb_close() - that routine allocates memory and could sleep
problem found with LOCKDEBUG, change adresses PR kern/21067 by Martin Husemann

g/c unneeded VOP_GETATTR() call from smbfs_closel()
2003-04-08 17:09:22 +00:00
jdolecek 49d2e49597 FILE_USE()/FILE_UNUSE() file entry returned from fd_getfile() properly
bug discovered with LOCKDEBUG, adresses PR kern/21067 by Martin Husemann
2003-04-08 16:29:11 +00:00
jdolecek 293074e648 attach/detach also malloc type M_SMBFSHASH ('oops') 2003-04-08 16:26:31 +00:00
uwe d7080d6b9d In msiiep_attach print \n to terminate its attachment line. 2003-04-08 15:16:14 +00:00
jdolecek ddf683ae7a fix simplelock acquire/release in smb_co_rele()
adresses PR kern/21067 by Martin Husemann
2003-04-08 14:56:49 +00:00
oki fb4bbe16fc Regen. 2003-04-08 10:58:55 +00:00
oki 105a3bb543 Added missing syscalls from native syscalls.master. 2003-04-08 10:57:56 +00:00
he 6a6aa0e6ca Track the SBSIZE -> SBLOCKSIZE rename after the UFS2 merge. 2003-04-08 06:54:24 +00:00
kml 0ad9e0dccc Host AP power saving support. The Host AP notices that the power
saving bit is set in incoming frames from a station, and buffers the
outgoing frames for the station until they are polled for.  This
requires support in the driver to set a bit in the TIM bitmap sent
during 802.11 beacons.

So far, support for power saving in Host AP mode is only available
for the PRISM2 chipset.
2003-04-08 04:31:23 +00:00
uwe cb7b4919ec Make v8_*_len symbols local so that they don't get in the way in ddb. 2003-04-08 01:51:46 +00:00
he eeae862145 Track the SBSIZE -> SBLOCKSIZE rename done by the UFS2 merge. 2003-04-07 21:42:53 +00:00
matt 021b37ca56 Add a KASSERT to pmap_extract so that vtophys is never attempted on a
mapped user address.
2003-04-07 21:42:14 +00:00
scw bfc4be13a6 When MEMCOPY is defined, don't bother checking if a backwards-copy is
required. That's what memmove() is for.

This should fix port-powerpc/16889. The backwards copyin can confuse
uiomove/genfs_getpages, resulting in corruption of files written over NFS.
2003-04-07 21:04:19 +00:00
jdolecek 1cd92a1660 use pools instead of malloc(9) for allocation of smb request structures
convert all code to use smb_{rq|t2}_alloc() instead of allocating
structures on stack, make smb_rq_init()/smb_t2_init() static and not
exported outside smb_rq.c
2003-04-07 19:35:39 +00:00
jdolecek e9a8600833 smbfs_closel(): fix inverted test in directory case 2003-04-07 19:31:01 +00:00
jdolecek e9680c83fc add TNF copyright licence for recent changes 2003-04-07 13:56:13 +00:00
jdolecek 7dbdaa2a4e smbfs_open(): reenable code mistakely #if 0'd in previous revision, make
sure it's only skipped in 'directory' case
2003-04-07 12:21:40 +00:00
jdolecek db1373faf6 g/c smbfs_kqinit() prototype, it is no more 2003-04-07 12:04:40 +00:00
jdolecek c0fd3735dc use NT DIRECTORY CHANGE NOTIFY to watch for directory kevents if the
server supports it
for this, need NT CREATE AND X a directory in smbfs_open(), so that
we get the FID handle used for DIRECTORY CHANGE NOTIFY SMB

this could eventually be used to 'watch' even regular files, by
watching its parent directory and lookup/VN_KNOTE() when we get
REMOVED/RENAMED/MODIFIED action

also reorganize the kqueue code somewhat to use simplify locking
and knote detach
2003-04-07 12:04:15 +00:00
he 672b90d3f1 Fix this so that it compiles after the UFS2 merge. This program can
still only deal with UFS1 file systems.

Reviewed by scw.
2003-04-07 11:45:55 +00:00
jdolecek b37f22dc9f add support for asynchronous execution of SMB requests:
* add receive hook - if set, this function is called when request is finished
* unstatic smb_rq_enqueue(), smb_rq_reply() so that code can use that
  independant of smb_rq_simple() et al
this is needed for NT DIRECTORY CHANGE NOTIFY SMB, since they typically
take very long to complete and we want to be able to use single kernel thread
to handle them all

add support for 'nowait' requests (flag SMBR_NOWAIT), which don't expect
and answer from server and are marked as 'processed' immediatelly
after they are sent to server - needed for NT CANCEL SMB
2003-04-07 11:23:02 +00:00
jdolecek dfb3906cfb add bunch of NT DIRECTORY CHANGE NOTIFY and NT CREATE AND X related constants
add mapping for ERRDOS:STATUS_NOTIFY_ENUM_DIR and ERRHRD:ERRgeneral
2003-04-07 11:13:24 +00:00
junyoung 247328b16a As beginning of merging uwscons to -current:
- Add a (temporary) printf to vga_raster_load_font() for tracking font
  loading process. If you encountered "vga_raster_load_font: called"
  kernel message, please let me know.
- While here, some KNF.
2003-04-07 05:48:54 +00:00
wiz 68caa698b2 Respect the law: Use A-law and mu-law as spellings as far as easily possible.
Inspired by Igor Sobrado in PR 19680.
2003-04-06 18:20:07 +00:00
manu 0479104b05 First attempt with task_suspend/task_resume, but we hit some bugs somewhere
else in our code.
2003-04-06 17:58:49 +00:00
tsutsui 972480b272 - update TODO list to reflect current status
- sort entries in some particular order
2003-04-06 17:48:51 +00:00
ragge f2523f5b9f A bunch of fixes to make the DHU driver much more efficient,
from Hugh Graham (hugh@openbsd.org).
2003-04-06 15:45:11 +00:00
rjs 5043a41a74 Add bs_mmap and make hack in bs_mmap conditional on hpcarm. 2003-04-06 12:56:45 +00:00
jdolecek 1b18fee640 this info is now in doc/RESPONSIBLE 2003-04-06 10:13:07 +00:00
tsutsui 4d0733ceec Add oosiop. 2003-04-06 10:10:38 +00:00
tsutsui 953980bca4 - Add oosiop at gsc.
- Enable sync and disconnect/reselect for osiop.
  (which seems to work on 712/60)
2003-04-06 10:09:18 +00:00
tsutsui aa2bec9565 Add MD attachment of the 53c700 SCSI on hp700 gsc.
XXX Tested only with pre-SA (1.6K) kernel on 735/125.
2003-04-06 10:06:14 +00:00
tsutsui ceef79f4ab - Match only HPPA_FIO_GSCSI (i.e. 53c710) for osiop.
- KNF some lines.
2003-04-06 10:02:52 +00:00
tsutsui 823585def2 Enable oosiop at jazzio.
While I'm here, use wildcard for osiop unit.
2003-04-06 10:00:00 +00:00
tsutsui f640b8f9fc Add MD attachment of the 53c700 SCSI controller on arc jazzio. 2003-04-06 09:55:50 +00:00
tsutsui afa38ad0e6 Regen scripts for new oosiop. 2003-04-06 09:52:21 +00:00
tsutsui bcf0b777ce Tweak siop scripts assembler for new oosiop. 2003-04-06 09:50:29 +00:00
tsutsui 7b4697bdbe Add MI NCR/Symbios 53c700 SCSI driver.
This "oosiop" driver was originally written by Shuichiro URATA
for arc port, and then it was modified by me to make it work
also on hp700.

This driver has been tested on my NEC Express5800/240 with 53c700-66
for several months, and also tested on HP9000 735/125 with 53c700
(though current hp700 port has been broken since SA merge).
Both sync transfer and disconnect/reselect work fine,
but tagged queuing is not implemented yet.
2003-04-06 09:48:41 +00:00
gmcgarry edf5b18a39 Garbage-collect vfs_lock()/vfs_unlock().
Xref vfssubr(9).
2003-04-06 07:04:42 +00:00
gmcgarry 2d6cf912cf Xref vfssubr(9) 2003-04-06 07:02:08 +00:00
mhitch 6f5554ffeb Check if 16 bit PC-relative offset will overflow, and abort if it does.
This will prevent building a bad boot file if it gets too large.
2003-04-06 03:22:50 +00:00
dsl b2aefec351 Remove pointless check against PID_MAX. Let pfind() do the validation.
(The new pid allocation code may decide to allocate pids above PID_MAX.)
2003-04-05 23:32:52 +00:00
bjh21 f34ba16c9c NetBSD/acorn26 has used APCS-32 for years, so unifdef -U__APCS_26__. 2003-04-05 23:27:14 +00:00
manu c74de80216 Implement task_info 2003-04-05 21:18:02 +00:00
manu acab734a9e Fix a few bugs and get a better notification support (A sample program
actually works)
2003-04-05 19:27:51 +00:00
nakayama a58fc7e1b2 Regen. 2003-04-05 19:11:44 +00:00
nakayama c559c6cf5d Rename "USB Reader" to "USB 6 in 1 Card Reader/Writer" more clearly
(pointed out by perry in private mail).
2003-04-05 19:10:12 +00:00
he 23113d90b1 Obey the LIBSA_NO_TWIDDLE define; don't include a reference to twiddle()
if it's defined.  This brings the size of bootxx_ffs under it's limit again.
2003-04-05 19:00:59 +00:00
perry 31cbf7d80d Add gentbi* PHYs
I noted in reading the log for PR kern/20988 that they were missing
XXX I'm not sure I got the name in the comment right, but if I don't
XXX do this who will?
2003-04-05 18:41:19 +00:00
nakayama f126378bbb Add quirk for Pen USB Reader. 2003-04-05 17:25:33 +00:00
nakayama 5890db6c2a Regen. 2003-04-05 17:23:49 +00:00
nakayama 59a67e04d6 Add USB Reader. 2003-04-05 17:22:50 +00:00
kent 5e655987ff Print correct name for Pentium-M 2003-04-05 17:16:06 +00:00
christos 9850310e2b PR/21030: Naoto Shimazaki: fcntl to accepted socket does not work properly 2003-04-05 16:54:34 +00:00
lha 23d7d55666 Regenerate.
(add Radeon Mobility M7 LW (AGP))
2003-04-05 16:43:47 +00:00
lha 76fa548db5 add Radeon Mobility M7 LW (AGP) 2003-04-05 16:41:42 +00:00
perry 773de18a27 Recognize VT82C596A
Patch from Christopher SEKIYA in PR port-i386/21013
2003-04-05 16:03:48 +00:00
tsutsui cd1fab2323 Comment out le at pci that doesn't work. (device timeout)
Probably bus_dmamap_sync() calls are required in
copy{from,to}{buf,desc}() functions..
2003-04-05 14:21:57 +00:00
fvdl 85d5aca005 Actually get an ext2fs_dinode structure from the pool before using it. 2003-04-05 14:01:56 +00:00
fvdl 4f33a6f2e1 * Use the old and new time fields in the superblock as well as a few others
to determine if this filesystem was mounted by an older kernel after
  having been mounted by a newer one, to avoid some summary mismatches.
* Reinstate support for 4.2 cylinder groups (read-only, as it was before).
2003-04-05 13:37:36 +00:00
tsutsui be164a7ff6 - remove "UT" (untested) from some working devices (ahc, pcscp, ex and epic)
- comment out sip which causes uncorrectable DMA error on TX.
- add commented out pcn which also causes DMA error.
2003-04-05 13:36:15 +00:00
kent d49a3d652c Support for 82540EP and 82540EP (LOM).
Not tested.
2003-04-05 13:23:17 +00:00
jdolecek dee9f67e51 add SMB_CAPS() macro, which returns session capabilities 2003-04-05 13:13:50 +00:00
kent 42243152f6 Add '(ICH3)' to the names of 82801CA for consistency with other 82801xx names 2003-04-05 13:00:15 +00:00
he f8cf57f9b0 Remember to prefix the manually-swapped FS magic numbers with 0x. 2003-04-05 11:12:42 +00:00
jdolecek 55535a9403 smb_iod_addrq(): change vc_maxmux check to #ifdef DIAGNOSTIC panic
change other SMBERROR() calls to SMBIODEBUG() - they are only useful when
debugging, and avoids spamming console/system logs with messages triggerable
from userland
2003-04-05 11:12:23 +00:00
he b44c5e8370 Track changes introduced when UFS2 was merged, so that this builds again. 2003-04-05 08:58:55 +00:00
tsutsui 3d23dbfe88 Include <machine/pio.h> for in32rb() and out32rb(). 2003-04-05 08:47:29 +00:00
briggs 7679f5b28b Channel active is bit 10, not 9. 2003-04-05 04:18:26 +00:00
matt 2f9404413f If extracting an address from the kernel pmap, see if the address is outside
the mapped address range.  If so, try to look it up via the BAT table.  If
successful, translate and return the BAT'ed pa.
2003-04-04 22:38:05 +00:00
kristerw b8943cbf89 Save some text segment space by not defining URLPHY_DEBUG. 2003-04-04 22:21:39 +00:00
petrov 7facff52bd use branch slot in pmap_copy_page. 2003-04-04 21:35:39 +00:00
matt 6193e8a4a1 Remove #define DEBUG. (this was working right. The problem I encountered
was due to a bug in PPCBOOT.  It was not ordering DIMM space largest to
smallest so that you could badly alignment memory).
2003-04-04 20:09:07 +00:00
drochner 42b749318f adapt to struct inode change (in UVMHIST code) 2003-04-04 13:39:58 +00:00
kent fa6424efa5 Support for ICH4M IDE Controller 2003-04-04 11:01:48 +00:00
jdolecek cdfa2ea23e #ifdef MCHAIN_DEBUG a too verbose message 2003-04-04 08:20:50 +00:00
kent e7a590c1f1 Support for i82450EP. 2003-04-04 06:45:12 +00:00
rafal 42dea81851 If booted device starts with pci(N), strip it off; also, compare strncmp()
result to 0, not NULL.  This gets the O2 figure out what device it's been
booted off correctly mow.
2003-04-04 04:27:29 +00:00
matt eb8a295e82 Rework l2cr/l3cr enabling/printing code. Make printing table driven. 2003-04-04 04:04:49 +00:00
matt ea6acde206 MMCRx register definitions should not be prefixed by SPR_ 2003-04-04 04:03:18 +00:00
matt 5bf8112ed1 Add two missing L2CLK speeds. 2003-04-04 04:00:16 +00:00
perry 3668dc75e5 fix from OpenBSD, contributed by Gabriel Gonzalez in PR kern/20999 2003-04-04 01:04:37 +00:00
he caa9c02ab5 To get this kernel to link as well, enable ``usb* at ohci?'' line. 2003-04-03 22:50:30 +00:00
fvdl 2257bf89d4 Add a bounds_check_with_mediasize function, which is intended
for checking RAW_PART transfers (and later raw disk devices).
2003-04-03 22:20:24 +00:00
martin 67c767ede2 Provide PAGE_SIZE to assembler source. 2003-04-03 22:19:16 +00:00
fvdl 65f01ff495 Add prototype for bounds_check_with_mediasize 2003-04-03 22:18:46 +00:00
fvdl 8103646465 Check RAW_PART against the media size instead of the disklabel.
Add the media size in 512-byte sectors to the softc, to avoid
some 64 bit computations. Bump the capacity stored in softcs
for disks to 64 bits.
2003-04-03 22:18:23 +00:00
christos 14e617d80f try to make this work with ufs1 only. 2003-04-03 22:10:12 +00:00
jklos 47ba8c1170 Version bumped to 3.0 to reflect changes to support ELF kernels. Thanks to
Gunther Nikl <gni@gecko.de> for the patches.
2003-04-03 21:02:08 +00:00
fvdl 7847218fc1 FreeBSD revision 1.135:
When removing the last item from a non-empty worklist, the worklist
tail pointer must be updated.
2003-04-03 19:28:07 +00:00
christos 4e47272b6b Don't require a file if CLEAR is set [did not work before because we
could have the descend flag too]
2003-04-03 18:54:16 +00:00
he f54ed457a6 Rename SBSIZE -> SBLOCKSIZE triggered by the UFS2 merge. 2003-04-03 17:49:22 +00:00
he e7dc774449 Including <uvm/uvm_extern.h> exposed the fact that we had a benign
type mismatch for SetCPSR.  Remove local extern declaration, since
it's now superfluous.
2003-04-03 17:47:04 +00:00
erh dcf3619707 Add a quirk to allow my NEO Jukebox to work again. 2003-04-03 17:41:51 +00:00
hpeyerl 5eefd45be5 Read USBH_ENABLE twice in succession according to Errata 7 for au1500. 2003-04-03 16:41:23 +00:00
kent 8691cfff6c regen 2003-04-03 16:15:22 +00:00
kent 22f1378011 - Forte Media PCI joystick
- Intel 82540EP chips
- Intel ICH4M IDE controller
- Modify descriptions of some ICH4 devices which ICH4M also has:
	82801DB xxx -> 82801DB/DBM xxx
2003-04-03 16:13:53 +00:00
fvdl 7d31e8f0d9 Avoid truncation of values in some macros that shift 64 bit values.
From FreeBSD.
2003-04-03 16:07:09 +00:00
christos 510b8e4284 Avoid stupid printfs during mountroot attempt. 2003-04-03 15:37:55 +00:00
christos 7aec408c5a avoid stupid printfs during probe 2003-04-03 15:36:31 +00:00
christos 773ff89c7e avoid stupid printfs during probe when debugging is on. 2003-04-03 15:35:41 +00:00
yamt d16c4c058f return rtmax bytes if we get READ requests larger than rtmax. 2003-04-03 15:19:12 +00:00
yamt 8cc1df8614 use m_copydata and m_split instead of similar inlined ones. 2003-04-03 15:14:51 +00:00
fvdl abf2ee00c3 Copy birthtime in vn_stat. 2003-04-03 14:53:38 +00:00
enami 7d8cb58793 Set va_birthtime field in vattr_null(). 2003-04-03 09:13:10 +00:00
he a1cf02e789 In the inode, i_din.e2fs_din is now a pointer, so there is no longer
a need to take the address here.
2003-04-02 22:38:22 +00:00
he 0a34406c13 Fill the target st_qspare array with 0, the source field has been reclaimed
for other use by the UFS2 merge, and this is just a filler anyway.
2003-04-02 22:14:23 +00:00
christos a9c71d20ab bioscall.S needs assym.h now. 2003-04-02 22:10:23 +00:00
christos d77be05384 PR/20982: Eric Fair: fix debugging printf format errors. 2003-04-02 21:53:15 +00:00
he 74354e7770 Change SBSIZE -> SBLOCKSIZE, to track changes brought in with UFS2. 2003-04-02 20:53:13 +00:00
he f918a51ddd Change SBSIZE -> SBLOCKSIZE, to track changes caused by the UFS2 merge. 2003-04-02 20:38:28 +00:00
he 6098c9ba7f Change SBSIZE to SBLOCKSIZE to make this compile after UFS2 was brought
in.  OK'ed by ragge.
2003-04-02 20:32:01 +00:00
he 97b6d5bf4f Conditionalize declaration of local variable ``i'', now that the
code which uses it is also conditionalized.
2003-04-02 19:47:25 +00:00
drochner 9ec3975139 allow to customize how highlighting and underlining text is substituted
if the display doesn't provide this
submitted by xs@kittenz.org per PR kern/18004
2003-04-02 18:22:56 +00:00
drochner f9773705b1 fix crash due to wrong argument in the (almost useless)
DECRQUPSS escape sequence
2003-04-02 17:48:59 +00:00
jdolecek a9bdad15e9 when loaded via LKM, need to malloc_type_{attach|detach} used malloc
types on load/unload appropriately
XXX this should really be automated somehow
2003-04-02 16:26:53 +00:00
drochner 5d591b6e06 allow any type of Turbochannel network card as boot device
(especially "fta")
2003-04-02 16:04:19 +00:00
drochner 4500630b4c SBSIZE->SBLOCKSIZE (who cares about d_sbsize anyway?) 2003-04-02 15:35:31 +00:00
yamt a14f444335 use queue manipulation macros. 2003-04-02 15:14:19 +00:00
jdolecek a1e8c55374 g/c vc_timo from struct smb_vc - it's not used anymore 2003-04-02 15:03:37 +00:00
jdolecek e71b725363 we now use rqp->sr_timo for request timeout value, so don't
reset it in smb_rq_simple(); 5 ticks (vc_timo) would be generally
too small timeout anyway
2003-04-02 15:01:52 +00:00
jdolecek 0e263cfbbf g/c M_SMBFSMNT, it is not used anymore 2003-04-02 11:18:08 +00:00
fvdl 42614ed3f3 Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
jdolecek 5fd8296ac8 add LKM for file system SMBFS
XXX the LKM requires nsmb pseudo device in kernel to load successfully ATM
2003-04-02 09:45:42 +00:00
thorpej ffc984aa7c Use PAGE_SIZE rather than NBPG. 2003-04-02 07:53:56 +00:00
thorpej cc2c493bc4 Use PAGE_SIZE rather than NBPG. 2003-04-02 07:35:54 +00:00
thorpej 02efafccdc Use PAGE_SIZE rather than NBPG. 2003-04-02 04:35:22 +00:00
thorpej c9228c8ddd Use PAGE_SIZE rather than NBPG. 2003-04-02 04:17:50 +00:00
thorpej 44b9a2a1ec Use PAGE_SIZE rather than NBPG. 2003-04-02 04:05:31 +00:00
thorpej fd53a1c386 Use PAGE_SIZE rather than NBPG. 2003-04-02 03:51:33 +00:00
thorpej dd9bc74460 Use PAGE_SIZE rather than NBPG. 2003-04-02 03:39:59 +00:00
thorpej bc226765c8 Use PAGE_SIZE rather than NBPG. 2003-04-02 03:27:35 +00:00
thorpej ecd9fdcc76 Oops, didn't mean to commit this. 2003-04-02 03:16:39 +00:00
thorpej d470cda51b Use PAGE_SIZE rather than NBPG. 2003-04-02 02:56:40 +00:00
thorpej 86f35f803c Use PAGE_SIZE rather than NBPG. 2003-04-02 02:45:36 +00:00
thorpej 3c0e6f55e1 We use 4k pages on the sh5; make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK
comptile-time constants.
2003-04-02 02:44:06 +00:00
thorpej f6aabf7609 We use 4K pages on the sh3/sh4; make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK
compile-time constants.
2003-04-02 02:39:47 +00:00
thorpej 30c52ef9c3 Use PAGE_SIZE rather than NBPG. 2003-04-02 02:34:12 +00:00
thorpej 9f7d0893c1 Use PAGE_SIZE rather than NBPG. 2003-04-02 02:19:29 +00:00
hpeyerl 295e297794 de-slob-ify. (I'm a slob) 2003-04-02 02:18:52 +00:00
thorpej d57736a746 Use PAGE_SIZE rather than NBPG. 2003-04-02 01:09:19 +00:00
perry a6e07c4e35 grow #! line length -- patch from cgd, fixes PR kern/20112 from Todd Vierling 2003-04-02 00:58:56 +00:00
thorpej 71cdc2eb5e Use PAGE_SIZE rather than NBPG. 2003-04-02 00:44:22 +00:00
perry 7b8af330e0 Add missing COMPATs
From PR port-shark/20130 from Todd Vierling
While I'm in there, sort them the other way, to match other ports
2003-04-02 00:28:25 +00:00
thorpej 158cfe844c Use PAGE_SIZE rather than NBPG. 2003-04-02 00:08:13 +00:00
thorpej 2ccc5bc00d Make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK compile-time constants on
luna68k.
2003-04-02 00:03:49 +00:00
thorpej 61f1732f44 Use PAGE_SIZE rather than NBPG. 2003-04-01 23:54:11 +00:00
thorpej 7c0edb9d0e Make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK compile-time constants for
PowerPC processors.
2003-04-01 23:52:35 +00:00
thorpej 720768a1f5 Use PAGE_SIZE rather than NBPG. 2003-04-01 23:47:01 +00:00
thorpej 95281cabad Use PAGE_SIZE rather than NBPG. 2003-04-01 23:19:08 +00:00
thorpej 30c345408f Use PAGE_SIZE rather than NBPG. 2003-04-01 22:37:25 +00:00
thorpej 957249ff69 e PAGE_SIZE rather than NBPG. 2003-04-01 22:36:01 +00:00
mycroft bfb4fa0c88 There are two #defines of CONSPEED in here; didn't make sense to me. 2003-04-01 21:27:24 +00:00
thorpej 8818afa48e Use PAGE_SIZE rather than NBPG. 2003-04-01 21:26:26 +00:00
mycroft d35a2d2955 Add -DSLOW to reduce the size of libz a bit. 2003-04-01 21:25:34 +00:00
mycroft 96f88c853c Trivial const poisoning. 2003-04-01 21:10:45 +00:00
mycroft 0b87bcb397 constify a couple of pointers. 2003-04-01 21:09:32 +00:00
thorpej a17e74359a Use PAGE_SIZE rather than NBPG. 2003-04-01 21:08:13 +00:00
briggs cb2eb4a01a Mmmm... LOCKDEBUG...
Change from unlock -> modify -> unlock to _lock_ -> modify -> unlock.
2003-04-01 20:59:15 +00:00
thorpej b4fe782331 Use PAGE_SIZE rather than NBPG. 2003-04-01 20:48:27 +00:00
thorpej 14491f27dd * Define PAGE_SHIFT, PAGE_SIZE, and PAGE_MASK in <hppa/vmparam.h>,
not in <hppa/param.h>.
* Define NBPG in terms of PGSHIFT.
2003-04-01 20:47:25 +00:00
thorpej 65d98ed786 Use PAGE_SIZE rather than NBPG. 2003-04-01 20:41:36 +00:00
matt d914d04522 Cleanup PCI support. 2003-04-01 19:11:44 +00:00
hpeyerl b5cbb20a0f Add wscons to files.pb1000 in case someone wants to plug a kbd/mouse
into the USB. Add config file for DB1500. We should really make a
files.db1500 but whatever.
2003-04-01 17:40:19 +00:00
hpeyerl badb1c52ec OHCI front-end driver for Alchemy cpu's. We now have USB Host support.
Tested on PB1500 and DB1500 boards.
2003-04-01 17:36:45 +00:00
hpeyerl 2664e8455c route a clock to the USB Host peripheral. includes code to configure
auxpll but this seems to come up at the right speed out of reset so it's
#if 0'd out.
2003-04-01 17:35:45 +00:00
hpeyerl 4a1358aecb add defines for high/low level triggered interrupts (need this in au_icu.c) 2003-04-01 17:34:10 +00:00
hpeyerl deece0b31e s/ohci.c/ohci_aubus.c/ 2003-04-01 17:31:50 +00:00
hpeyerl 29422429f6 add defines for Alchemy clock and frequency control registers. 2003-04-01 17:30:09 +00:00
hpeyerl 56f13f6fa9 allocate an aubus dma tag. 2003-04-01 17:29:11 +00:00
hpeyerl 9cda767630 support active low, level triggered interrupts, needed for ohci front end. 2003-04-01 17:28:24 +00:00
he 31f4d984cb The adler32.c file previously from libz is no longer needed. 2003-04-01 16:50:52 +00:00
thorpej 747aa1e024 Use PAGE_SIZE rather than NBPG. 2003-04-01 16:34:58 +00:00
thorpej d3f30fc625 We use 8K VM pages on Sun4U, so make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK
into compile-time constants.
2003-04-01 16:05:30 +00:00
thorpej 43e759e5ac Use PAGE_SIZE rather than NBPG. 2003-04-01 15:47:48 +00:00
thorpej 50659edcb7 Make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK a compile-time constant on Sun2. 2003-04-01 15:33:48 +00:00
thorpej 3b9d583516 Use PAGE_SIZE rather than NBPG. 2003-04-01 15:23:07 +00:00
thorpej 1411d9951f Use PAGE_SIZE rather than NBPG.
XXX Except in one place, which will require more work.
2003-04-01 15:22:53 +00:00