summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* | Introduce EVFILT_TIMER, which allows a process to establish anjlemon2001-07-192-3/+68
| | | | | | | | | | | | | | arbitrary number of timers, both oneshot and periodic. Repeatedly reminded to commit by: jayanth Reviewed by: peter (a while back)
* | Unconditinally turn on VLAN support when building fxp as a module, sincejlemon2001-07-191-1/+1
| | | | | | | | | | | | | | it may be plugged into a kernel that supports VLANs. If the kernel is not VLAN aware, things will still work as before. Modules don't really have option support, so this is somewhat of a hack.
* | Only turn on MWI if the PCI configuration word indicates that itjlemon2001-07-191-5/+6
| | | | | | | | | | | | | | | | is supported, in addition to checking for a valid cacheline size. Add a missing splx() in fxp_tick that got dropped. Found by: peter MFC in: 3 days
* | Expand the range of the vm86pcb_lock so that it protects manipulationsjlemon2001-07-191-2/+2
| | | | | | | | | | | | to the global vm86 page table as well. Spotted by: Kazu
* | Merged from sys/i386/isa/npx.c revision 1.106.kato2001-07-191-14/+5
| |
* | Merged from sys/i386/isa/npx.c revision 1.105.kato2001-07-191-9/+9
| |
* | Merged from sys/i386/i386/machdep.c revisions 1.462 and 1.464.kato2001-07-192-140/+178
| |
* | Backout non-functional changes from revision 1.128.ru2001-07-191-13/+9
| | | | | | | | Not objected to by: dcs
* | swtch.s: During context save, use the correct bit mask for clearingbsd2001-07-195-12/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the non-reserved bits of dr7. During context restore, load dr7 in such a way as to not disturb reserved bits. machdep.c: Don't explicitly disallow the setting of the reserved bits in dr7 since we now keep from setting them when we load dr7 from the PCB. This allows one to write back the dr7 value obtained from the system without triggering an EINVAL (one of the reserved bits always seems to be set after taking a trace trap). MFC after: 7 days
* | Don't use kp->arg0 as a format string, grr.kris2001-07-191-1/+1
| | | | | | | | MFC after: 1 week
* | Quiet a variable format-string warning.kris2001-07-196-12/+12
| | | | | | | | MFC after: 1 week
* | Quiet a variable format-string warning.kris2001-07-191-1/+1
| | | | | | | | MFC after: 1 week
* | ahc_pci.c:gibbs2001-07-1813-360/+696
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If bus_dma will give us addresses > 32 bits, setup our dma tag to accept up to 39bit addresses. aic7770.c: Update the softc directly rather than use an intermediate "probe_config" structure. aic7xxx.c: Complete core work to support 39bit addresses for bulk data dma operations. Controller data structures still must reside under the 4GB boundary to reduce code/data size in the sequencer and related data structures. This has been tested under Linux IA64 and will be tested on IA64 for FreeBSD as soon as our port can run there. Add bus dmamap synchronization calls around manipulation of all controller/kernel shared host data structures. Implement data pointer reinitialation for a second data phase in a single connection in the kernel rather than bloat the sequencer. This is an extremely rare operation (does it ever happen?) and the sequencer implementation was flawed for some of the newest chips. Don't ever allow our target role to initiate a PPR. This is forbidden by the SCSI spec. Add a few missing endian conversions in the ignore wide pointers code. The core has been tested on the PPC under Linux and should work for FreeBSD PPC. As soon as I can test the OSM layer for FreeBSD PPC, I will. Move some of ahc_softc_init() into ahc_alloc() now that the probe_config structure is gone. Add a 4GB boundary condition on all of our dma tags. 32bit DAC under PCI only works on a single 4GB "page". Although we can cross 4GB on a true 64bit bus, the card won't always be installed in one and we can save code space and cost in implementing high address support by assuming the high DWORD address will never change. Add diagnostics to ahc_search_qinfifo(). Correct a target mode issue with bus resets. To avoid an interrupt storm from a malicious third party holding the reset line, the sequencer would defer re-enabling the reset interrupt until either a select-out or select-in. Unfortunately, the select-in enable bit is cleared by a bus reset, so a second reset will render the card deaf to an initiator's attempts to contact it. We now re-enable bus reset interrupts immediately if the target role is enabled. aic7xxx.h: Remove struct ahc_probe_config. SCB's now contain a pointer to the sg_map_node so we can perfrom bus dma sync operations on the SG list prior to queuing a command. aic7xxx.reg: Register the Perforce ID for this file with the VERSION keyword so it is printed in generated files. Add the DSCOMMAND1 register which is used to access the high DWORD of address bits. Add the data pointer reinitialize sequencer interrupt code. aic7xxx.seq: Register the Perforce ID for this file with the VERSION keyword so it is printed in generated files. Remove code to re-enable the bus reset interrupt after a select-in. In target mode we cannot defer this operation as ENSELI is cleared by a bus reset. Complete 39bit support. Generate a sequencer inteerrupt rather than handle the data pointers re-initialitation in the sequencer. Inline the "seen identify" assertion to save a few cycles. Short circuit the update of our residual data if we have fully completed a transfer. The residual is correct from our last S/G load operation. Short circuit full SDPTR processing if the residual is 0. Just mark the transfer as complete. aic7xxx_93cx6.c: Synchronize perforce IDs. aic7xxx_freebsd.c: Complete untested 39bit support. Add missing endia conversions. Clear our residuals prior to starting a command. The update residual code in the core only sets the residual if there is one. aic7xxx_freebsd.h: Modeify ahc_dmamap_sync() macros to take an offset and a length. This is how sync operations are performed in NetBSD, and we should update our bus dma implementation to match. aic7xxx_inline.h: Add data structure synchronization helper functions. Fix a bug in ahc_intr() where we would not clear our unsolicited interrupt counter after running our PCI interrupt handler. This may have been the cause of the spurious PCI interrupt messages. aic7xxx_pci.c: Adjust for loss of probe_config structure. Guard against bogus 9005 subdevice information as seen on some IBM MB configurations. Add 39bit address support. MFC after: 10 days
* | Add support for parsing version strings out of assembler source filesgibbs2001-07-185-36/+111
| | | | | | | | | | | | | | | | | | and outputing them in generated files. Fixed a few other scanner bugs that for some reason didn't show up until these modifications were made. MFC after: 10 days
* | Grab the process lock around psignal().jhb2001-07-181-0/+2
| | | | | | | | Noticed by: tanimura
* | Add printf format checking to sbuf_printf()phk2001-07-181-1/+1
| | | | | | | | Submitted by: Harti Brandt <brandt@fokus.gmd.de
* | Keep track of all "struct snoop"'s so that snp_modevent can fail withdd2001-07-183-2/+19
| | | | | | | | EBUSY if there's a device still open.
* | Use MD_NAME and MDCTL_NAME constants where appropriate.dd2001-07-181-2/+3
| |
* | Make sure that installing a module complains if the target modulesroam2001-07-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | directory does not exist, instead of creating/overwriting a file with the name of the (expected) directory. Yes, this deviates a bit from nearly all other install targets in the tree, but let's face it, removing a modules directory is not all that uncommon a mistake, and finding a file with the contents of the last module installed is a baaad surprise at boot time.. PR: 26317 Submitted by: "T. William Wells" <bill@twwells.com> (the PR) Gregory Bond <gnb@itga.com.au> (the actual patch) Reviewed by: silence on -arch and -audit for the last 10 days MFC after: 2 weeks
* | Skip the route checking in the case of multicast packets with knowndcs2001-07-171-9/+22
| | | | | | | | | | | | | | interfaces. Reviewed by: people at that channel Approved by: silence on -net
* | Increase NMBCLUSTERS by 4x.obrien2001-07-171-1/+1
| | | | | | | | This takes a GENERIC kernel (MAXUSERS=32) from 1536 to 3072.
* | The per-cpu temporary buffers are not needed since the pcb_save areas havetegge2001-07-173-42/+15
| | | | | | | | | | | | | | the proper alignment. Change dummy variable in npxinit from stack to bss to ensure proper alignment. Reviewed by: bde
* | Backout damage to the INADDR_TO_IFP() macro in revision 1.7.ru2001-07-171-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | This macro was supposed to only match local IP addresses of interfaces, and all consumers of this macro assume this as well. (See IP_MULTICAST_IF and IP_ADD_MEMBERSHIP socket options in the ip(4) manpage.) This fixes a major security breach in IPFW-based firewalls where the `me' keyword would match the other end of a P2P link. PR: kern/28567
* | Add missing () around macro argument in cv_waitq_empty()phk2001-07-171-1/+1
| | | | | | | | Submitted by: Harti Brandt <brandt@fokus.gmd.de>
* | Change the interrupt handler a bit so that we call the nge_rxeof() handlerwpaul2001-07-161-3/+2
| | | | | | | | | | | | when we get an RX_ERR interrupt rather than the nge_rxeoc() handler. The rxeoc (end of channel) handler attempts to reinitialize the whole NIC, which we don't want to do if we only received a bad packet.
* | Use PCPU_GET(cpuid) instead of curproc->p_oncpu.tegge2001-07-163-27/+27
| | | | | | | | Reviewed by: peter
* | Use a fixed type for times in on-disk structures for ufs rather thanpeter2001-07-163-5/+6
| | | | | | | | something that could potentially change like time_t.
* | Now that config(8) has stopped breaking POLA (mkmakefile.c rev 1.69) byobrien2001-07-151-25/+25
| | | | | | | | | | always including <KERNEL>.hints if its exist reguardless of the lack of a "hints" directive in the <KERNEL> file; we can have a real hints file again.
* | do not M_WAITOK in in6_update_ifa(), since this function can be calledume2001-07-151-1/+6
| | | | | | | | | | | | | | under splnet(). (some comment was added by KAME) PR: 28927 MFC after: 1 week
* | Remove whitespace at EOL.dd2001-07-151-3/+3
| |
* | Put module directories one per line so adding new modules creates readablebrooks2001-07-152-14/+137
| | | | | | | | diffs and produces less conflicts with local source trees.
* | The i386-specific includes in this file were "fixed" by bracketing them withbenno2001-07-151-3/+3
| | | | | | | | | | | | | | #ifndef __alpha__. Fix this for the rest of the world by turning it into #ifdef __i386__. Reviewed by: obrien
* | Turn off preemption on the Alpha for the time being. Peter and JHB aren'tobrien2001-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | sure when things got so bad (JHB says preemption worked just fine for months before the AlbertVM commit). Even post DillionVM locking commit, Miatas (DEC Personal Workstations) are very fragile -- not making it thru a world build. With this patch it does. Those hacking on SMPng will want to locally back out this commit. The rest of us will want to run with it until the SMPng guys figure out the problem(s). Submitted by: peter
* | Fix MCOUNT_ENTER() so it actually compiles in the profiling case.jhb2001-07-142-2/+2
| | | | | | | | | | Pointy hat to: me Submitted by: Danny J. Zerkel <dzerkel@columbus.rr.com>
* | Fix reboot hangs that have happened with multiple processorsmjacob2001-07-144-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | on Alpha 4100s. Basically, if you're halting or you're rebooting, you should tell all other processors to halt first. Define IPI_HALT- IPI_STOP is not what we want for this purpose, which will call prom_halt(0) on receipt. The processor running the halt or reboot wil send an IPI_HALT to all other processors, delay a bit, then continue to do what what it was planning on doing (prom_halt({0|1})).
* | Hrmpf. nyan's rev 1.25 commit to fdc.h crossed with my removal of it.joerg2001-07-142-0/+34
| | | | | | | | Back-integrate his (PC98) changes into fd.c.
* | Yet another large non-function change.joerg2001-07-143-434/+542
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | . Integrate fdc.h into fd.c, with the removal of ft(4) there's no longer a reason to scatter things across two files. . Sanitize comments. Convert them into the style(9)-recommended multi-line form, make them sentences where apprpriate, etc. . Declare all functions on top, and declare them in the order they appear in the file. This order is totally chaotic, but Bruce convinced me that reordering the file wouldn't make it better either. . Kill a `possibly uninitialized' warning (only seen with -O2) in fd_read_status(). . Make the comments at return (0|1) statements in fdstate() consistent. . Nuke a ``keep the compiler happy'' dummy return at the end of fdstate(), gcc is smart enough to detect that it would never be reached anyway.
* | Move the hints gunk to a seperate file. It isn't really part of thepeter2001-07-142-299/+1
| | | | | | | | newbus structure (no more than subr_rman.c is anyway).
* | Fixed conflict with sys/dev/syscons/syscons.h.nyan2001-07-142-10/+0
| | | | | | | | Submitted by: yokota
* | Move fxp to the miibus section where it belongs.dd2001-07-142-2/+2
| |
* | remember to set the return address in a message whenjulian2001-07-141-0/+1
| | | | | | | | | | | | | | | | | | sending it along a hook. PR: 27906 Submitted by: Harti Brandt <brandt@fokus.gmd.de> no MFC as code is different in 4.x
* | - Refine pc98 supports.nyan2001-07-145-90/+195
| | | | | | | | | | - Use bus_space stuff. - Rename FDO_* -> FDC_* (obtained from NetBSD/pc98)
* | Added epson_inw function.nyan2001-07-141-0/+11
| |
* | Merged from the following changes.nyan2001-07-147-58/+74
| | | | | | | | | | | | | | | | sys/dev/syscons/scvgarndr.c revision 1.11 sys/dev/syscons/scvtb.c revision 1.8 sys/dev/syscons/syscons.c revisions 1.361, 1.363, 1.364, 1.365 and 1.366 sys/isa/atkbd_isa.c revision 1.9 sys/isa/syscons_isa.c revision 1.17
* | Merged from sys/i386/conf/GENERIC revision 1.313.nyan2001-07-141-1/+1
| |
* | Added (commented out) audio driver.nyan2001-07-141-0/+4
| |
* | Merged from sys/conf/options.i386 revision 1.150.nyan2001-07-141-0/+1
| |
* | Catch up with NetBSD/pc98.non2001-07-1426-3151/+7499
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Much cleanly separate NetBSD(XS) / FreeBSD(CAM) codes. o Improve tagged queing support (full QTAG). o Improve quirk support. o Improve parity error retry. o Impliment wide negotheation. o Cmd link support. o Add copyright of CAM part. o Change for CAM_NEW_TRAN_CODE. o Work around for buggy KME UJDCD450. o stg: add disconnet condition. o nsp: use suspend I/O. and more. I thank Honda-san. conf/options.pc98: add CT_USE_RELOCATE_OFFSET and CT_BUS_WEIGHT dev/{ct,ncv,nsp,stg}/*_{pccard,isa}.c: add splcam() before calling attach/detach functions. Tested by: bsd-nomads Obtained from: NetBSD/pc98
* | Go back to having either static OR dynamic hints, with fallbackpeter2001-07-142-32/+82
| | | | | | | | | | | | | | | | support. Trying to fix the merged set where dynamic overrode static was getting more and more complicated by the day. This should fix the duplicate atkbd, psm, fd* etc in GENERIC. (which paniced the alpha, but not the i386)
* | Merge with latest version of the Mylex 6+ driver.msmith2001-07-148-1423/+1320
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - All sources are built in a single object, reducing namespace pollution. - Kill the ready queue, and handle a busy response to mly_start in callers rather than deferring the command. - Improve our interaction with CAM: - Don't advertise physical channels as SCSI busses by default. - use the SIM queue freeze capability rather than queueing CDBs internally. - force bus reprobe at module load time. - Clean up more resources in mly_free. - Tidy up debugging levels. - Tidy up handling of events (mostly just code cleanliness). - Use explanatory macros for operations on bus/target/channel numbers.
OpenPOWER on IntegriCloud