summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* use devclass_get_maxunit() correctlycg2001-06-183-4/+4
|
* revise dsp_clone() to return the first nonbusy channel instead of simplycg2001-06-174-15/+17
| | | | | | cycling channel numbers. remove unused fields from struct snddev_info.
* fix a potential panic in dsp_clone() if no pcm devices were detectedcg2001-06-171-0/+2
|
* Don't assume that resource type is ioport and rid equal 0.nyan2001-06-172-10/+12
|
* The final commit for the first phase of PowerPC support.benno2001-06-175-44/+145
| | | | | | This adds the config stuff needed to build kernels. Reviewed by: obrien
* Allocate all resources using keyboard controller.nyan2001-06-172-16/+74
|
* Move cardbus and pccard bus bridge devices to near the bridge chips. Thisimp2001-06-171-2/+2
| | | | | is so that all the pccard options are together and this reduces diffs with GENERIC.
* MFGENERIC:imp2001-06-171-12/+9
| | | | | | | | | 1.307 Turn on kernel debug support 1.309 Turn off pcm 1.311 move wx to miibus chipsets 1.312 Comment out USERCONFIG Reminded by: mihira-san <sanpei@sanpei.org>
* Move setugid() a little sooner to before we release tracing in casepeter2001-06-161-2/+3
| | | | crdup() or change_e*id() block on malloc() or mutex.
* Some people are having problems with insert/eject. Add some debugimp2001-06-161-0/+4
| | | | | | | | information until the problems can be tracked down. Right now these are unconditional, but later it will be hidden behind a boot verbose. Also, if there are no events listed in the event mask, return right away. Specifically avoid writing back interrupt acks in this case.
* Use INTR_TYPE_AV for the interrupt handlers because:peter2001-06-167-8/+8
| | | | | | | | | 1: most drivers are sensitive to timing, and 2: the handlers are MPSAFE and need a chance to get into the kernel before some other non-mpsafe handler blocks the ithread on Giant in shared irq cases. Reviewed by: cg (in principle)
* Add INTR_TYPE_AV so that we can get to the PI_AV priority in the ithreadpeter2001-06-162-1/+5
| | | | | | handlers. This is beneficial since it means that pcm's MPSAFE handler can get run before things that will block on Giant in the shared irq case.
* Clean up some junk. The bogus trapframe on the stack was removed from thepeter2001-06-161-7/+0
| | | | MI code in August 2000 elsewhere.
* use a global devclass for all drivers - i'm not entirely sure why thiscg2001-06-1630-929/+936
| | | | | | | | | | | | | | | worked before. mixer, dsp and sndstat are seperate devices - give them their own cdevsws instead of demuxing requests sent to a single cdevsw. use the si_drv1/si_drv2 fields in dev_t structures for holding information specific to an open instance of mixer/dsp. nuke /dev/{dsp,dspW,audio}[0-9]* links - this functionality is now provided using cloning. various locking fixes.
* less warningume2001-06-162-82/+82
| | | | warning: cast discards qualifiers from pointer target type
* Fix "alignemnt" typo.alex2001-06-166-6/+6
|
* This file was a horrible mixture of styles old and new.markm2001-06-161-27/+16
| | | | Apply style(9).
* OpenFirmware kernel support, as used by the PowerPC and hopefully otherbenno2001-06-163-7/+357
| | | | | | | | | ports later on. This includes the basic MI interface routines as well as a console driver. The MD code is kept in the MD directories. Reviewed by: obrien
* This commit (along with one pending in sys/dev/ofw and one in sys/conf) givebenno2001-06-1625-487/+606
| | | | | | | | | | | | | us our first minimal glimpse of PowerPC support. With this code we can get to the "mountroot>" prompt on my Apple iMac. We can't get any further due to lack of clock and interrupt handling, among other things. This does however mean that pmap and VM are initialising. We're fairly dependant on OpenFirmware at this point, but I hope to add support for other classes of firmware at a later stage. Reviewed by: obrien, dfr
* Fix warnings:jlemon2001-06-161-0/+1
| | | | | 112: warning: cast to pointer from integer of different size 125: warning: cast to pointer from integer of different size
* Save the IRQ that we get in pci attachment.imp2001-06-163-15/+15
| | | | | | | | | | | Print type of pci bridge we find. Force the IRQ of pci bridges upon all its children. Allocate the resources on behalf of the bridge when we're testing to see if they exist. This should help people who don't read updating instructions very well. This patch started out with an idea from Shigeru Yamamoto-san in -current.
* Work around what looks like a bad make(1) bug. For some reason,peter2001-06-161-5/+3
| | | | | | | | | | | | | | | | | | make(1) wants to build loader.sym *before* the .o files. Eliminating one seeminly intermediate step avoids the problem. Somehow, it seems that variables are not getting expanded at the right time. Any explanations would be appreciated... Changing: ${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o ${LD} ... To: BASEOBJS= ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o ${BASE}.sym: ${BASEOBJS} echo ${BASEOBJS} ${LD} ... .. the echo only shows LIBFICL, CRT and vers.o. ${OBJS} is not included.
* On PC-98, map IRQ 6 to IRQ 7 at the pcic level. That is, when we'reimp2001-06-163-4/+17
| | | | | | | | | | | | told to use IRQ 6, progam the pcic to use irq 7 instead. Evidentally, at least some of the cards are wired this way. If you want to use irq 6, configure it. All the mapping is done just before we set the interrupt registers. See [FreeBSD98-testers 5064] for details. Added commentary about valid interrupts on some CBUS pc98 CL PD6722 based cards. Submitted by: Hiroshi TSUKADA-san <hiroshi@kiwi.ne.jp>
* style(9) and remove a left over Alpha commentobrien2001-06-164-54/+60
|
* style cleanupobrien2001-06-162-44/+46
|
* Add PC-9821RA-E01. This appears that PC-9821 Ra20 has this eitherimp2001-06-161-0/+1
| | | | | | | built in, or as an addon card (My Japanese isn't quite good enough to know which). [FreeBSD98-testers 5098] contains all the details. Submitted by: Kawanobe Koh-san <kawanobe@st.rim.or.jp>
* style policeobrien2001-06-161-4/+5
|
* This Intel derived file uses C++ style comments.obrien2001-06-161-33/+37
| | | | | | | | (I'll be we know which compiler and platform they developed this on...) Minimally change them to C89 comments to make GCC happy. (this is kinda funny as the file has piece derived from FreeBDS 3.2) Also fix FreeBSD id style.
* Fix FreeBSD id style.obrien2001-06-162-4/+10
|
* style(9)obrien2001-06-161-23/+18
|
* Mind-o in last commit: s/==/>=/ when checking MTU size. *blush*wpaul2001-06-161-1/+1
|
* Fix the last serious bug I've been chasing:wpaul2001-06-161-23/+41
| | | | | | | | | | | | | | The DP83820/83821 has an undocumented limitation concerning jumbo frames and TX checksum offload. In order for TX checksum offload to work, the outgoing frame must fit entirely within the TX FIFO, which is 8192 bytes in size. This isn't a problem, until you try to send a 9000-byte frame, at which point the TX DMA engine goes to sleep. It turns out that if you want to send a jumbo frame larger than 8170 bytes (8192 - 64), you have to turn off the TX checksum support. As a workaround, I changed nge_ioctl() so that if the user selects an MTU larger than 8152 bytes, we clear the if_hwassist flags. The flags will be set again once the MTU is reduced to a smaller value.
* style(9) + fix FreeBSD id's.obrien2001-06-165-34/+41
|
* Add CVS id.obrien2001-06-151-1/+2
|
* Bump FreeBSD_version to indicate locale renamingache2001-06-151-1/+1
|
* I'm a dunce. Clean up some warnings by axeing some unused variables fromjhb2001-06-151-2/+0
| | | | the previous commit.
* Do not perform arp send/resolve on an interface marked NOARP.jlemon2001-06-154-6/+18
| | | | | PR: 25006 MFC after: 2 weeks
* Correctly hook up the write kqfilter to pipes.jlemon2001-06-151-5/+7
| | | | Submitted by: Niels Provos <provos@citi.umich.edu>
* Updates and tweaks to the new trace functionality:jhb2001-06-151-37/+44
| | | | | | | | | | | | | - Use db_printf() instead of printf(). - Clean up decode_syscall() to use regular if-then-else rather than goto's. - Use the same method of parsing PID's for per-process traces as the x86 code does: that is, if the address passed in is not a valid kernel address, treat it is a decimal pid. - If the pid of the current process is specified, fall back to using the "default" parameters for the trace as curproc's pcb is not valid at this point. MFC after: 1 week
* Turn TCP and UDP hardware RX checksumming back on. jlemon pointed out wherewpaul2001-06-152-6/+3
| | | | I'd gone wrong before: we have to set csum_data to 0xffff, not 0.
* Fix TX bug: when using TCP/IP checksum offload on TX, we tell the chipwpaul2001-06-151-4/+4
| | | | | | | we want the checksums calculated on a per-packet basis using control bits in the extsts field of the DMA descriptor structure. For TX, the chip seems to want these bits set in the field of the first descriptor in a fragment chain, not the last.
* #if 0 out pfs_null() to silence the warning about it not being referenced.des2001-06-151-0/+2
|
* oops. prepare_usermode() died in August 2000 in the MI and x86 code.peter2001-06-153-22/+0
| | | | Issue raised by: scottl
* Bah, back out part of previous commit. I got too carried away.peter2001-06-151-1/+1
| | | | linux_debug_map[] is referred to from elsewhere.
* Fix warning:peter2001-06-151-1/+1
| | | | 163: passing arg 4 of `resource_string_value' from incompatible pointer type
* Fix warnings:peter2001-06-151-48/+48
| | | | | 585: warning: missing braces around initializer 605: warning: missing braces around initializer
* Fix warnings:peter2001-06-153-9/+9
| | | | | 908: warning: long unsigned int format, unsigned int arg (arg 3) 887: warning: `timezero' defined but not used
* Fix warnings:peter2001-06-151-5/+5
| | | | | 235: warning: unsigned int format, pointer arg (arg 3) 621: warning: cast discards qualifiers from pointer target type
* Fix warning:peter2001-06-151-2/+2
| | | | 239: warning: no previous prototype for `linux_debug'
* Fix warning:peter2001-06-151-1/+1
| | | | 413: warning: long unsigned int format, vm_offset_t arg (arg 2)
OpenPOWER on IntegriCloud