summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix the ofw_isa.c entries, readd ofw_bus.c.tmm2002-04-051-4/+3
| | | | Pointy hat to: tmm
* Add missing header for the eeprom driver frontents.tmm2002-04-051-0/+68
|
* Increase the size of the register stack storage on ia64 from 32K to 2MB sopeter2002-04-051-1/+7
| | | | | | | | | that we can compile gcc. This is a hack because it adds a fixed 2MB to each process's VSIZE regardless of how much is really being used since there is no grow-up stack support. At least it isn't physical memory. Sigh. Add a sysctl to enable tweaking it for new processes.
* Send 32 bytes out for fc4_types... Interestingly enough the Solaris/Sparcmjacob2002-04-051-1/+1
| | | | | | version worked fine, but Linux/Sparc && FreeBSD/Sparc choked. MFC after: 1 week
* The 3Com 3CRWE62092A (the XJack antenna product) does not have a hostimp2002-04-051-1/+1
| | | | | | | | | | | | | | interface that is compatible with the LUCENT or HERMES firmware. Instead, it is like the various No Wires Necessary products that were produced a while ago and then sold to intersil. It will require a different driver altogether. Remove it from the list of supported cards. The 3CRWE777A apperas to be a re-badged SMC 2602W card, so the driver appears to support it. Add it to the list. Thanks to Todd Miller for loaning me the card during tonight's FRUUG meeting for testing against CU's wireless infrastructure.
* o Eliminate the use of grow_stack() and useracc() from sendsig(), osendsig(),alc2002-04-054-69/+44
| | | | | | and osf1_sendsig(). o Eliminate the prototype for the MD grow_stack() now that it has been removed from all platforms.
* Spell "privileges" correctly.eric2002-04-051-2/+2
|
* Spell "separate" correctly.eric2002-04-051-1/+1
|
* Add the eeprom diver frontend files, correct the entry for ofw_isa.c.tmm2002-04-041-1/+5
|
* Add MD frontents for the mk48txx driver, ported from NetBSD, and removetmm2002-04-044-13/+406
| | | | | stub implementations of inittodr() and resettodr(), now that the MI ones are used.
* D'oh! I forgot to commit this a while back.mjacob2002-04-041-1/+2
| | | | | | Add an option for enabling f/w crashdumps for the isp driver. MFC after: 1 week
* Fix bus dma segment count to be based off of MAXPHYS, not BUS_SPACE_MAXSIZE.mjacob2002-04-047-156/+675
| | | | | | | | | | | | | | | | | | | | | | | Grumble. I've seen better documented architectures out of Redmond. Redo fabric evaluation to not use GET ALL NEXT (GA_NXT). Switches seem to be trying to wriggle out of supporting this well. Instead, use GID_FT to get a list of Port IDs and then use GPN_ID/GNN_ID to find the port and node wwn. This should make working on fabrics a bit cleaner and more stable. This also caused some cleanup of SNS subcommand canonicalization so that we can actually check for FS_ACC and FS_RJT, and if we get an FS_RJT, print out the reason and explanation codes. We'll keep the old GA_NXT method around if people want to uncomment a controlling definition in ispvar.h. This also had us clean up ISPASYNC_FABRICDEV to use a local lportdb argument and to have the caller explicitly say that a device is at the end of the fabric list. MFC after: 1 week
* Add a driver back end for the Mostek MK48T02, MK48T08 and MK48T59tmm2002-04-043-0/+308
| | | | | | time-of-day clocks, ported from NetBSD. The front-ends are expected to be at least partly machine-dependent; the sparc64 EBus and SBus ones will be commited to MD directories for now (in a subsequent commit).
* Add a generic implementation of inittodr() and resettodr(), as well astmm2002-04-045-0/+755
| | | | | | | | | | a set of helper routines to deal with real-time clocks. The generic functions access the clock diver using a kobj interface. This is intended to reduce code reduplication and make it easy to support more than one clock model on a single architecture. This code is currently only used on sparc64, but it is planned to convert the code of the other architectures to it later.
* MFNetBSD:imp2002-04-041-0/+8
| | | | | | | 1.60: Add range checking, but put it higher up in the food chain than NetBSD (this should be fixed there as well). Obtained From: NetBSD
* MFNetBSD:imp2002-04-043-100/+123
| | | | | | | | | wi.c 1.64: Table driven IDs (ichiro) 1.59: Don't use magic numbers (ichiro) Also, added Sony, Lucent Embedded Ids and fix minor bugs for lucent cards (and submit those changes back to ichiro-san) Obtained from: NetBSD
* Embed a struct vmmeter in the per-cpu structure and add a macro,dillon2002-04-044-98/+156
| | | | | | | | | | | | | | | | PCPU_LAZY_INC() which increments elements in it for cases where we can afford the occassional inaccuracy. Use of per-cpu stats counters avoids significant cache stalls in various critical paths that would otherwise severely limit our cpu scaleability. Adjust all sysctl's accessing cnt.* elements to now use a procedure which aggregates the requested field for all cpus and for the global vmmeter. The global vmmeter is retained, since some stats counters, like v_free_min, cannot be made per-cpu. Also, this allows us to convert counters from the global vmmeter to the per-cpu vmmeter in a piecemeal fashion, so have at it!
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-04162-239/+274
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Add lock type arguments to callers of snd_mtxcreate().jhb2002-04-0410-10/+10
|
* Change snd_mtxcreate() to accept a lock type as an extra argument that isjhb2002-04-042-4/+4
| | | | passed to mtx_init().
* Change mtx_init() to now take an extra argument. The third argument isjhb2002-04-043-17/+28
| | | | | | the generic lock type for use with witness. If this argument is NULL then the lock name is used as the lock type. Add a macro for a lock type name for network driver locks.
* Set the lock type equal to the lock name for now as all of the currentjhb2002-04-041-1/+1
| | | | sx locks don't use very specific lock names.
* Add a new char * pointer lo_type to struct lock_object that is used tojhb2002-04-042-20/+30
| | | | | | | | | | point to a more generic name for a lock that is more suitable for use by witness when grouping locks. For example, although network driver locks use the interface name for the name of each lock, they should all use the same witness and be treated the same as witness. Another example is that all UMA zone locks should be treated the same. The witness code has also been updated to print out the lock type in addition to the lock name in a few places where it is relevant.
* Delete the bogus d_boot[01] fields from struct disklabel.phk2002-04-044-54/+71
| | | | | | | | | | | | | This shrinks the size 4 bytes on alpha, down to the same 276 bytes as all other platforms. Construct a hack to make old ioctls work on new kernels. Once world is recompiled only the new and correct sysctls will be used. This hack will become annoying around 1st of may to make people rebuild their worlds and it will be gone before 5.0.
* Mention that options BOOTP requires options NFSCLIENT and options NFS_ROOTbrian2002-04-041-0/+1
|
* Back out the previous commit.brian2002-04-043-3/+0
| | | | | | | | | | | In the i386 case, options BOOTP requires options NFS_ROOT as well as options NFSCLIENT. With *both* the NFS options, a bootpc_init() prototype is brought in by nfsclient/nfsdiskless.h. In the ia64 case, it just doesn't work and my change just pushes it further away from working. Suggested to be wrong by: bde
* Moved signal handling and rescheduling from userret() to ast() so thatbde2002-04-0419-34/+101
| | | | | | | | | | | they aren't in the usual path of execution for syscalls and traps. The main complication for this is that we have to set flags to control ast() everywhere that changes the signal mask. Avoid locking in userret() in most of the remaining cases. Submitted by: luoqi (first part only, long ago, reorganized by me) Reminded by: dillon
* Optimized the check for unmasked pending signals in CURSIG() using a newbde2002-04-042-8/+25
| | | | | | | | | | | inline function sigsetmasked() and a new macro SIGPENDING(). CURSIG() will soon be moved out of the normal path of execution for syscalls and traps. Then its efficiency will be less important but the new interfaces will be useful for checking for unmasked pending signals in more places. Submitted by: luoqi (long ago, in a slightly different form) Assert that sched_lock is not held in CURSIG().
* Pre-declare bootpc_init() so that options BOOTP doesn't break thebrian2002-04-043-0/+3
| | | | build in ia64 and i386 due to -Werror.
* Centralize EOF handling and improve access controls for bio scheduling.phk2002-04-044-44/+71
| | | | Sponsored by: DARPA & NAI Labs
* Move access and orphan member functions from class to geom.phk2002-04-0411-36/+31
| | | | Sponsored by: DARPA & NAI Labs
* s/classs/classes/ to fixup grammer after the previous global renaming.phk2002-04-044-8/+8
| | | | Sponsored by: DARPA & NAI Labs
* CTASSERT the size of struct dos_partition.phk2002-04-043-0/+9
|
* Register major #4 for GEOMphk2002-04-041-1/+1
|
* o Kill the MD grow_stack(). Call the MI vm_map_growstack()alc2002-04-043-35/+19
| | | | | | | in its place. o Eliminate the use of useracc() and grow_stack() from sendsig(). Reviewed by: peter
* o Add architecture specific segment types.marcel2002-04-041-0/+11
| | | | o Add architecture specific segment attributes.
* o Reduce the gratuitous differences with NetBSD.imp2002-04-043-60/+34
| | | | | | | | | | o OpenBSD's wiconfig tells me that a value of '2' is for sony wireless cards, 1 is for lucent (which we already knew) and '5' is for embedded lucent cards. o Move some RID definitions to if_wavelan_ieee.h and use NetBSD names more often. # more work is still needed in this area.
* Use a relative path to libstand.. /usr/src/lib/libstand may not existpeter2002-04-042-2/+2
| | | | or may have the wrong header files.
* Replace (deprecated ?) FREE() macro with direct calls to free()luigi2002-04-048-22/+22
|
* Try to sort out the correct way to generate async link state changewpaul2002-04-042-15/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | interrupts. This is a bit harder than it needs to be because there's more than one way to generate link attentions, at least one of which does not work on the BCM5700, but does on the 5701. For the 5701, we can safely use the 'link changed' bit in the status block, and we enable link change attentions in the mac event register. For the 5700, we have to use MII interrupts, which require checking the MAC status register rather than the status block. This requires doing an extra register access on each interrupt which I'd prefer to avoid, but them's the breaks. Testing with both a 3c996-T and 3c996B-T shows that we do in fact detect the link going up and down properly on cable insertions/disconnections. Also, avoid twiddling the autopoll enable bit in the MI mode register when doing a PHY read. I think this coupled with the other changes will stop the interrupt storms Paul Saab has been harassing me about. Manually setting the link to 100baseTX full duplex seems to work ok for me. (I'm typing over the 3c996B-T right now.) Lastly, teach the driver how to recognize a 3c996B-SX by checking the hardware config word in the EEPROM in order to detect the media. We attach 5701 fiber cards correctly now, but I haven't verified that they send/receive packets yet since I don't have a second fiber interface at home. (I know that fiber 5700 cards work, so I'm keeping my fingers crossed.)
* Fix incorrect m_free - m_freem() usage.luigi2002-04-041-3/+2
|
* Fix a couple of incorrect m_free() vs. m_freem() usages and related issues.luigi2002-04-043-31/+20
| | | | Reviewed-by: brooks
* Add the driver for "myson" ethernet cards.julian2002-04-042-0/+2467
| | | | | | | | | | | | | This driver was written by Myson and is made available by their courtesy. The 5.x version is not fully tested (I will be testing) but the 4.x version has been tested by many. I will commit it soon. Myson have their own chip design based on the DEC 214xx family but with several differences. Myson sells this chip to several EOMs in teh Chinese area so there may be many noname brand cards that respond to this driver. Myson will be supplying a list of some of these.
* o aio_process needn't fhold()/fdrop() the fp now that _aio_aqueue() andalc2002-04-041-13/+6
| | | | | | aio_free_entry() do this. o Remove two unnecessary/unused variables from aio_process() and one field from aiocblist.
* Avoid a lock order reversal by dropping the eventhandler_mutex earlier.alfred2002-04-041-2/+1
| | | | | | | | We get enough protection from the lock on the individual lists that we aquire later. Noticed/Tested by: Steven G. Kargl <kargl@troutmask.apl.washington.edu> Submitted by: Jonathan Mini <mini@haikugeek.com>
* Move the FFS parameter MAXFRAG from <sys/param.h> to <ufs/ffs/fs.h>phk2002-04-033-1/+3
| | | | Sponsored by: DARPA & NAI Labs.
* It would appear, from preliminary indications, that No Wires Necessaryimp2002-04-031-2/+0
| | | | cards aren't compatible with either Lucent or Intersil firmware.
* Four fixes from NetBSD:imp2002-04-034-62/+146
| | | | | | | | | | | | | | | | | | 1) Properly detect the Symbol based cards (The 3Com Airconnect and their ilk) and only reset them *ONCE* ever. This appears to make them work, but more testing is needed. The tests that would wedge up my machine completely now appear to work, but I have not real access points handy. 2) Report both the Station firmware and the Primary firmware on Prism based cards. On Lucent based cards, only report the station firmware since that's all it supports. On symbol cards, report the symbol specific firmware name as its station firmware. 3) Better Prism 2.5 and 3 family names. We really need to go table driven for this. 4) Workaround for bugs in Intersil's firmware is only needed for at most 0.8.2 and earlier, since 0.8.3 and later appear to work. Obtained from: NetBSD
* - Axe a stale comment. We haven't allowed the ucred pointer passed tojhb2002-04-031-9/+2
| | | | | | | | securelevel_*() to be NULL for a while now. - Use KASSERT() instead of if (foo) panic(); to optimize the !INVARIANTS case. Submitted by: Martin Faxer <gmh003532@brfmasthugget.se>
* First round at trying to split up NOTES into MI and MD portions.jhb2002-04-034-2987/+16
| | | | | | | | | | | | Unfortunately, this level doesn't really provide enough granularity. We probably need several MI NOTES type files for things that are shared by several architectures but not by all. For example, the PCI options could live in a NOTES.pci. This also updates the Makefile for i386 to generate LINT. The only changes in the generated LINT are the order of various options. Suggestions for improvement welcome.
OpenPOWER on IntegriCloud