summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* KNF style the code, ready for an MFC.joe2002-02-172-76/+82
|
* Move the bus_space_subregion function from the puc driver to the bus_spacenyan2002-02-174-21/+42
| | | | | | sutff. Reviewed by: jhay
* - Split the routine to initialize a bus_space_handle into the separatenyan2002-02-179-142/+339
| | | | | | | function. - Only access a bus_space_handle if the resource type is SYS_RES_MEMORY or SYS_RES_IOPORT. - Add the bus_space_subregion supports.
* MFi386: revision 1.167nyan2002-02-171-0/+2
|
* MFi386: revision 1.392nyan2002-02-171-0/+3
|
* Purely whitespace changesjulian2002-02-171-25/+25
|
* replace the embedded cr_mtx in the ucred structure with cr_mtxp (a mutexdillon2002-02-172-11/+13
| | | | | pointer), and use the mutex pool routines. This greatly reduces the size of the ucred structure.
* Support for f/w crash dumps (2200 && 23XX).mjacob2002-02-174-20/+401
| | | | | | | | | | | | | If you want QLogic to look at a potential f/w problem for FC cards, you really have to provide them info in the format they expect. This involves dumping a lot of hardware registers (> 300 16 bit registers) and a lot of SRAM (> 128KB minimum). Thus all of this code is #ifdef protected which will become an option so that the memory allocation of where to dump the crash image is pretty expensive. It's worth it if you have a reproducible problem because they have some tools that can tell them, given the f/w version, the precise state of everything. MFC after: 1 week
* Hints for WWN are now WWNN and/or WWPN.mjacob2002-02-171-2/+2
| | | | MFC after: 1 week
* Add in support firmware crash dumps. Change CFG options to splitmjacob2002-02-171-2/+13
| | | | | | WWN into WWNN and WWPN. MFC after: 1 week
* Bulk changes made during the BSDcon kernel summit and travel afterwards.imp2002-02-173-582/+669
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Appologies for making this one bulk commit, but I have tested all these changes together and don't want to break anything by trying to disentangle it. o Make debugging a sysctl/tunable o Remove flags word from yenta chip info, it is unused o Make 16-bit card I/O range and 32-bit card I/O range tunables o Start the rename of pccbb to cbb to match NetBSD by misc renames. o Kill the now bogus list of softcs to create kthread. Instead, just create the kthread in the attach routine. o Remove sc_ from some structure names. It isn't needed. o Refine chipset lookup code. o Match generic PCI <-> CardBus bridges. We specifically don't generically match PCI PCMCIA bridges because they are not, with one exception, yenta devices. o Add some comments about the why we need to have a function table ala OLDCARD o The PCI interrupt routing by using the ExCA registers is needed for for all bridges, per the spec, not just TI ones. o Collapse TOPIC95 and TOPIC95B. o Using the ToPIC 97 and 100 datasheets, try to support these bridges better, but more work is needed. o Generally clarify some XXX comments and add them in a few places where things didn't look right to me. o Move interrupt generating register access until after we establish an ISR. o Add support for YV and XV cards. X and Y are numbers to be determined later (but maybe never). o factor powerup code for 16-bit and 32-bit cards. o When a card supports more than one voltage, prefer the lowest supported volage. Windows does this, and MS's design guides imply this is the right thing to do. o Document race between kthread_exit(0) and kldunload's unmapping of pages that John Baldwin and I discovered. o Debounce the CSC interrupt a little better. o When a 16-bit card is inserted when we don't have a pccard child, warn about it better. Ditto for 32-bit card. o Ack ALL the interrupt bits that we get, not just 0x1. o maybe a couple minor style nits corrected.
* If the credential on an incoming thread is correct, don't botherjulian2002-02-176-15/+44
| | | | | | | | reaquiring it. In the same vein, don't bother dropping the thread cred when goinf ot userland. We are guaranteed to nned it when we come back, (which we are guaranteed to do). Reviewed by: jhb@freebsd.org, bde@freebsd.org (slightly different version)
* remove __P before next commitjulian2002-02-171-13/+13
| | | | Reviewed by: jhb
* I am sick of being told that "cstsevent occures".des2002-02-161-2/+2
|
* (Doing that whole test-immediately-after-commit-thing like obrien sez:)green2002-02-161-0/+2
| | | | Forgot to include lock.h and mutex.h for GIANT_REQUIRED.
* Add revoke_and_destroy_dev(), to be used by devices which decide whengreen2002-02-163-0/+15
| | | | | they choose to destroy themselves without regard to whether or not they are open.
* Add the puc (PCI "Universal" Communications) driver. The idea and some ofjhay2002-02-168-0/+1676
| | | | | | | | | | | | | the structure definitions come from NetBSD to make it easier to share card definitions. The driver only acts as a shim between the pci bus and the sio driver. Later pci parallel ports could also be supported through this driver. Support for most single and multiport pci serial cards should be as simple as adding its definition to pucdata.c Tested with the following pci cards: Moxa Industio CP-114, 4 port RS-232,RS-422/485 Syba Tech Ltd. PCI-4S2P-550-ECP, 4 port RS-232 + 2 parallel ports Netmos NM9835 PCI-2S-550, 2 port RS-232
* MFi386: revisions 1.334 and 1.335nyan2002-02-161-0/+1
|
* MFi386: revisions 1.495 and 1.496nyan2002-02-162-2/+6
|
* Added #include <sys/systm.h>nyan2002-02-161-0/+2
|
* Dont try to attach ATA RAID's if none found.sos2002-02-161-0/+3
|
* Don't leave garbage in parts of fpregs in the fxsr case. All callersbde2002-02-162-0/+4
| | | | | | | (procfs and ptrace) supply kernel stack garbage, so kernel context was leaked to userland. Reviewed by: des
* FIxed the following style bugs:bde2002-02-162-10/+16
| | | | | | | | | | - clobbering of jsp's $Id$ by FreeBSD's old $Id$. - long lines in recent KSE changes (procfs_ctl.c). - other style bugs in KSE changes (most related to an shadowed variable in procfs_status.c -- the td in the outer scope is obfuscated by PFS_FILL_ARGS). Approved by: des
* FIxed the following style bugs:bde2002-02-163-11/+21
| | | | | | | - clobbering of jsp's $Id$ by FreeBSD's old $Id$. - lost Berkeley id in procfs_dbregs.c - long lines in recent KSE changes. - various gratuitous differences between procfs_*regs.c.
* Fixed missing PHOLD()/PRELE().bde2002-02-161-0/+2
| | | | | Obtained from: procfs_dbregs.c Approved by: des
* Merge from NetBSD:joe2002-02-165-16/+21
| | | | | | Pave the way for USB2, by replacing 'lowspeed' with 'speed', so that it can take the values USB_SPEED_LOW, USB_SPEED_FULL or in time USB_SPEED_HIGH.
* Re-add bmaj to the cdevsw's, but don't compile it in on -current.joe2002-02-156-0/+18
| | | | | This makes the code more portable between -current, -stable and the other BSDs.
* Resurrect one of the easiest changes from my big include files roll-upwollman2002-02-158-6/+22
| | | | | | patch from a year ago: give file flags their own type. This does not (yet) change the type used by system calls or library functions. The underlying type was chosen to match what is returned by stat().
* Fix my recent breakage of some modules.bde2002-02-152-1/+8
|
* Add a delta missed in the last iommu.c commit. This unbreaks the sparc64tmm2002-02-151-12/+24
| | | | | | kernel build. Pointy hat to: tmm
* - Remove unneeded variable.robert2002-02-151-2/+0
| | | | | | | - Remove change for my local configuration that slipped in with the last commit; I am having problems booting when multiple SCSI disks are attached, so I will change this part as soon as I find a solution, anyway.
* Garbage-collect options ACPI_NO_ENABLE_ON_BOOT, AML_DEBUG, BLEED,bde2002-02-155-30/+0
| | | | | DEVICE_SYSCTLS, KEY, LOUTB, NFS_MUIDHASHSIZ, NFS_UIDHASHSIZ, PCI_QUIET and SIMPLELOCK_DEBUG.
* This file is now unneeded.robert2002-02-151-492/+0
|
* - Do not include a NetBSD header as it is not needed anymore.robert2002-02-151-24/+11
| | | | | | | | | | - Remove two constants that were needed in conjuction with the NetBSD disklabel header. Use the FreeBSD equivalents. To boot from NetBSD/sparc64 partitions, define LABELOFFSET to be 128. - Do not use the complete open firmware path to filter out cdrom drives. No path containing "cdrom" is detected as a disk now. - Simplify some code.
* Add the FreeBSD/sparc64 bootblock and its make file.robert2002-02-154-0/+1448
|
* Moved the 127/8 check below so that IPF redirects have a chance of working.ru2002-02-151-10/+10
| | | | MFC after: 1 day
* Garbage collect options AVM_A1_PCI, AVM_A1_PCMCIA, DEBUG_LINUX, DEV_APM,bde2002-02-157-68/+1
| | | | | GUS_DMA, GUS_DMA2, GUS_IRQ, OLTR_NO_BULLSEYE_MAC, OLTR_NO_HAWKEYE_MAC, OLTR_NO_TMS_MAC and PCIC_RESUME_RESET.
* #include "opt_compat.h" so that the support for old ioctls can actuallybde2002-02-152-0/+8
| | | | | | | | | | | | be compiled. Old tty ioctls are still used (possibly ifdef'ed) in at least the following programs in the src tree: atc des ee fontedit gdb gdbserver lock ntp perl5 tcsh telnet top vttest rp.c: Unremoved used variables so that the support for old ioctls actually compiles. Not tested at runtime by: bde
* Added undocumented options AAC_DEBUG, ACD_DEBUG, ACPI_MAX_THREADS,bde2002-02-155-1/+75
| | | | | | | | | | | | | | | | | | | | ACPI_NO_SEMAPHORES, ASR_MEASURE_PERFORMANCE, AST_DEBUG, ATAPI_DEBUG, ATA_DEBUG, BKTR_ALLOC_PAGES, BROOKTREE_ALLOC_PAGES, CAPABILITIES, COMPAT_SUNOS, CV_DEBUG, MAXFILES, METEOR_TEST_VIDEO, NDEVFSINO, NDEVFSOVERFLOW, NETGRAPH_BRIDGE, NETSMB, NETSMBCRYPTO, PFIL_HOOKS, SIMOS, SMBFS, VESA_DEBUG, VGA_DEBUG. Start using #! to comment out negative options and ## to comment out broken options. atapi-all.c: Fixed rotted bits that were hiding under ATAPI_DEBUG. atapi-cd.c: #include "opt_ata.h" so that ACD_DEBUG is actually visible. ata/atapi-tape.c #include "opt_ata.h" so that AST_DEBUG is actually visible.
* Lots of improvement to the bridging code.luigi2002-02-152-302/+403
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order of importance: + each cluster now uses private data structures (filtering and local address tables) so you can treat them as fully independent switches. This part of the work was supported by: Cisco Systems, Inc. - NSITE lab, RTP, NC. + cleaned up the handling of configuration, so the system will behave much better when real or pseudo devices are dynamically attached or detached. It should also not panic anymore on systems with large number of devices, closing a few existings PRs on the topic. + while at it, add support for VLAN. This means that a FreeBSD box can now work as a real VLAN switch, with trunk interfaces etc. As an example: ifconfig vlan0 vlan 3 vlandev dc0 ifconfig vlan1 vlan 4 vlandev dc0 net.link.ether.bridge_cfg="vlan0:3,dc1:3,vlan1:4,dc1:4" uses dc0 as a trunk interface, and dc1 and dc3 as ports on vlans 3 and 4 You get the idea... NOTA BENE: by default bridge_cfg is initialised to "" so even if you enable bridging, no packets will be bridged until you set the list of interfaces on which you want this to happen. + large restructuring of the code, moving private vars and types from bridge.h to bridge.c. + added a lot of comments to the code to explain how to use it.
* Remove useless initialization to 0 of a couple of global variables.luigi2002-02-151-2/+2
|
* Fixed a typo in rev.1.65 that gave a reference to a nonexistent variable.bde2002-02-151-1/+1
| | | | This was not detected by LINT because LINT is missing COMPAT_SUNOS.
* Make this compile after changes to kse structures.luigi2002-02-151-1/+1
| | | | | | | | | This escaped because DEVICE_POLLING is disabled in LINT being not compatible with SMP. In fact, it is only a runtime problem, so if we could recognize that we are building a LINT kernel we could as well disable the check for SMP being defined. Reported-by: Joe Clarke
* Spell #if 0 correctlygallatin2002-02-141-2/+2
|
* Remove an unneeded include of sys/sx.h. An older pre-commit version ofjhb2002-02-141-1/+0
| | | | | the filedesc locking used an sx lock for the filedesc lock rather than a mutex which is why the include was here.
* Fix a bug introduced in rev.1.40 which can cause systems to crash whengreen2002-02-141-7/+9
| | | | | detaching USB devices. Specifically, a variable which was not meant to be reused was, in fact, being reused.
* Regenerate.joe2002-02-142-2/+9
|
* Support the HP 5400C scanner.joe2002-02-142-0/+2
| | | | PR: kern/34783
* Complete rework of the PowerPC pmap and a number of other bits in the earlybenno2002-02-1423-4449/+5133
| | | | | | | | | | | | | | boot sequence. The new pmap.c is based on NetBSD's newer pmap.c (for the mpc6xx processors) which is 70% faster than the older code that the original pmap.c was based on. It has also been based on the framework established by jake's initial sparc64 pmap.c. There is no change to how far the kernel gets (it makes it to the mountroot prompt in psim) but the new pmap code is a lot cleaner. Obtained from: NetBSD (pmap code)
* Fixed sign extension bugs in previous commit. They didn't completelybde2002-02-141-4/+4
| | | | | | | | break scheduling because negative priorities were most fixed up by converting kg_pri_user back to the correct type. Fixed some style bugs in previous commit (non-terminated sentence fragments and regressions in comments).
OpenPOWER on IntegriCloud