aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Make this compile on the Alpha. I'm not 100% sure about this but IPeter Wemm1999-07-252-38/+4
| | | | | | | | think it's ok. ti_bhandle is fetched from newbus on both the Alpha and x86, the Alpha-only ti_vhandle is gone. Notes: svn path=/head/; revision=49078
* Remember to clear the IFF_RUNNING and IFF_OACTIVE flags in sf_stop() andBill Paul1999-07-254-8/+26
| | | | | | | sk_stop(). Notes: svn path=/head/; revision=49077
* This commit adds device driver support for Adaptec Duralink PCI fastBill Paul1999-07-2515-11/+6082
| | | | | | | | | | | | | | | | | | | | | | | | ethernet controllers based on the AIC-6915 "Starfire" controller chip. There are single port, dual port and quad port cards, plus one 100baseFX card. All are 64-bit PCI devices, except one single port model. The Starfire would be a very nice chip were it not for the fact that receive buffers have to be longword aligned. This requires buffer copying in order to achieve proper payload alignment on the alpha. Payload alignment is enforced on both the alpha and x86 platforms. The Starfire has several different DMA descriptor formats and transfer mechanisms. This driver uses frame descriptors for transmission which can address up to 14 packet fragments, and a single fragment descriptor for receive. It also uses the producer/consumer model and completion queues for both transmit and receive. The transmit ring has 128 descriptors and the receive ring has 256. This driver supports both FreeBSD/i386 and FreeBSD/alpha, and uses newbus so that it can be compiled as a loadable kernel module. Support for BPF and hardware multicast filtering is included. Notes: svn path=/head/; revision=49076
* Don't set DE_ACCESS for unsuccessful reads.Bruce Evans1999-07-252-16/+24
| | | | | | | | | | | | | Translated from: a similar fix in ufs_readwrite.c rev.1.61. Don't forget to set DE_ACCESS for short reads. Check for invalid (negative) offsets before checking for reads of 0 bytes, as in ufs, although checking for invalid offsets at all is probably a bug. Notes: svn path=/head/; revision=49075
* Don't set IN_ACCESS for requests to read 0 bytes or for unsuccessful reads.Bruce Evans1999-07-252-4/+8
| | | | | | | | | Translated from: similar fixes in ufs_readwrite.c rev.1.61. Things are simpler (but annoyingly different) here because there are no vm optimisations. Notes: svn path=/head/; revision=49074
* Fixed access timestamp bugs:Bruce Evans1999-07-251-5/+17
| | | | | | | | | | | | | Set IN_ACCESS for successful reads of 0 bytes (except for requests to read 0 bytes). This was broken in rev.1.42. PR: misc/10148 Don't set IN_ACCESS for requests to read 0 bytes. Don't set IN_ACCESS for unsuccessful reads. Notes: svn path=/head/; revision=49073
* 3C574TX 16bit FastEtherlink PC-card support.Tatsumi Hosokawa1999-07-254-12/+80
| | | | | | | | Reviewed by: HAMADA Naoki <nao@tom-yam.or.jp> Submitted by: Osamu MIHARA <mihara@prd.fc.nec.co.jp> Notes: svn path=/head/; revision=49070
* Increased max kmem to 200MB. This should fix some out-of-kmem panics onDavid Greenman1999-07-242-4/+4
| | | | | | | large systems. Notes: svn path=/head/; revision=49068
* Add mx and ax modules for the Macronix and ASIX drivers and update theBill Paul1999-07-243-3/+60
| | | | | | | modules Makefile so they get built. Notes: svn path=/head/; revision=49067
* Convert the ASIX and Macronix drivers to newbus.Bill Paul1999-07-244-341/+384
| | | | Notes: svn path=/head/; revision=49066
* Oops, the previous commit only worked in the one case it was tested for.Bruce Evans1999-07-242-4/+6
| | | | Notes: svn path=/head/; revision=49065
* Update intpm driver.Nicolas Souchu1999-07-241-6/+17
| | | | | | | | PR: kern/12631 Submitted by: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp> Notes: svn path=/head/; revision=49064
* Recognise NetBSD slices.Robert Nordier1999-07-241-3/+4
| | | | | | | | Submitted by : Lars Koeller <lkoeller@cc.fh-lippe.de> PR : 12772 Notes: svn path=/head/; revision=49060
* - Correctly initialize cn_dev_t and cn_udev_t.Kazutaka YOKOTA1999-07-243-13/+19
| | | | | | | | | - Add D_TTY for alpha. Reviewed by: bde, dfr Notes: svn path=/head/; revision=49049
* Do not print resource values which are not set.Kazutaka YOKOTA1999-07-241-7/+7
| | | | | | | Reviewed by: dfr Notes: svn path=/head/; revision=49048
* This makes the in kernel printf routines conform to the documentedDoug Rabson1999-07-245-29/+42
| | | | | | | | | behavior of their userland counterparts with respect to return values. Submitted by: Matthew N. Dodd <winter@jurai.net> Notes: svn path=/head/; revision=49047
* atomic.h:Alan Cox1999-07-236-35/+14
| | | | | | | | | | | | | | | | | | | | Change "void *" to "volatile TYPE *", improving type safety and eliminating some warnings (e.g., mp_machdep.c rev 1.106). cpufunc.h: Eliminate setbits. As defined, it's not precisely correct; and it's redundant. (Use atomic_set_int instead.) ipl_funcs.c: Use atomic_set_int instead of setbits. systm.h: Include atomic.h. Reviewed by: bde Notes: svn path=/head/; revision=49043
* fix a problem w/ zero byte writes to the tunnel device. It would bypassJohn-Mark Gurney1999-07-231-1/+1
| | | | | | | | | | | | | the loop and not set an error, so we would then try to access an invalid mbuf... PR: 12780 Submitted by: bright@rush.net aka zb^3 a new record in length a pr was open... only about a half hour... Notes: svn path=/head/; revision=49038
* Clean up the buffer allocation code a bit. Make sure to initialize certainBill Paul1999-07-234-58/+64
| | | | | | | | | | | | | | critical mbuf fields to sane values. Simplify the use of ETHER_ALIGN to enforce payload alignment, and turn it on on the x86 as well as alpha since it helps with NFS which wants the payload to be longword aligned even though the hardware doesn't require it. This fixes a problem with the ti driver causing an unaligned access trap on the Alpha due to m_adj() sometimes not setting the alignment correctly because of incomplete mbuf initialization. Notes: svn path=/head/; revision=49036
* Grrr. Return the rman_get_bustag()/rman_get_bushandle() lines to theirBill Paul1999-07-232-4/+10
| | | | | | | | proper place in ti_attach(). I'm positive I typed them in there, but they must have fallen victim to a drive-by cut & pasting. Notes: svn path=/head/; revision=49035
* One last tweak before I turn in for the evening: the driver name inBill Paul1999-07-232-6/+6
| | | | | | | | | the driver_t declaration should be "skc" not "sk". Technically, "skc" is the parent PCI device (the SysKonnect GEnesis controller) and "sk0" and "sk1" are the network interfaces that get attached to it. Notes: svn path=/head/; revision=49017
* Create module directories for the xl, ti, tl and sk drivers and addBill Paul1999-07-235-2/+117
| | | | | | | them to the Makefile so that modules will be generated for /modules. Notes: svn path=/head/; revision=49016
* Dangit. Somehow the pmap_kextract hack for alpha snuck back into theseBill Paul1999-07-236-20/+14
| | | | | | | | | files. Change them back to alpha_XXX_dmamap(). Pointed out by: Andrew Gallatin Notes: svn path=/head/; revision=49012
* Convert the Alteon Tigon gigabit ethernet driver to newbus. Also upgradeBill Paul1999-07-238-6584/+6680
| | | | | | | to the latest firmware release from Alteon (12.3.12). Notes: svn path=/head/; revision=49011
* Some more small newbus cleanups. Remember to free all resources in caseBill Paul1999-07-234-72/+92
| | | | | | | of failures in foo_attach(), simplify iospace/memspace things a little. Notes: svn path=/head/; revision=49010
* Revert out part of the last patch that can be done better elsewhere.Julian Elischer1999-07-221-8/+4
| | | | | | | The complexity added isn't worth it. Notes: svn path=/head/; revision=49003
* Remove the definitions for the SiS 900 chip. This is not a RealTekBill Paul1999-07-222-17/+4
| | | | | | | | clone after all. I have the datasheets for this part; hopefully I can write a proper driver soon. Notes: svn path=/head/; revision=49001
* fix braino..Julian Elischer1999-07-221-2/+2
| | | | | | | | | accidentally replaced PAGE_MASK with PAGE_SIZE. (PAGE_MASK is PAGE_SIZE - 1) bug does not manifest itself on our hardware..... Notes: svn path=/head/; revision=49000
* Well, it seems that loading a PCI driver module after the system hasBill Paul1999-07-222-3/+12
| | | | | | | | | | | | been booted works too -- very neat. However I don't want the system to stop for 5 seconds when the MII autoprobe is triggered in the xl and tl drivers since that's lame. Instead, only use the hard delay when we've been cold booted. If not, use the timeout mechanism instead. (The SysKonnect driver doesn't use the same autonegotiation scheme, so no change is required there.) Notes: svn path=/head/; revision=48999
* Convert the ThunderLAN driver to newbus. Also add splimp() protection toBill Paul1999-07-222-82/+166
| | | | | | | tl_stats_update(). Notes: svn path=/head/; revision=48992
* Fix a small mind-o: one instance of SYS_RES_IOPORT should have beenBill Paul1999-07-222-6/+6
| | | | | | | SYS_RES_MEMOTY in sk_detatch(). Notes: svn path=/head/; revision=48987
* Add braces to make if-else statement clearer.Mitsuru IWASAKI1999-07-222-8/+12
| | | | | | | | PR: 12663 Submitted by: Adam Wight <adamw@holonet.net> Notes: svn path=/head/; revision=48984
* Modify device numbering method to work with latest -CURRENT. Briefly,Greg Lehey1999-07-222-11/+15
| | | | | | | | | | | | the device numbers are now minor number only, so that we can still compare them after dev_t has turned into a blob. Broken-by: dev_t changes Reported-by: Vallo Kallaste <vallo@matti.ee> "Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk> Notes: svn path=/head/; revision=48975
* Reduce the number of "magic constants" used for page coloringAlan Cox1999-07-226-17/+11
| | | | | | | | by one: PQ_PRIME2 and PQ_PRIME3 are used to accomplish the same thing at different places in the kernel. Drop PQ_PRIME3. Notes: svn path=/head/; revision=48974
* Convert the SysKonnect gigabit ethernet driver to newbus.Bill Paul1999-07-224-154/+262
| | | | Notes: svn path=/head/; revision=48973
* Small tweak to newbus changes: return error status on failure correctlyBill Paul1999-07-221-2/+2
| | | | | | | | in xl_attach() (not a problem if the attach never fails, but if it does the function would still return 0, which is wrong). Notes: svn path=/head/; revision=48972
* Make mountroot work again (change makedev to makebdev).Doug Rabson1999-07-211-3/+4
| | | | Notes: svn path=/head/; revision=48969
* Fix the following problem:Alan Cox1999-07-217-16/+55
| | | | | | | | | | | | | | | | | | | When creating new processes (or performing exec), the new page directory is initialized too early. The kernel might grow before p_vmspace is initialized for the new process. Since pmap_growkernel doesn't yet know about the new page directory, it isn't updated, and subsequent use causes a failure. The fix is (1) to clear p_vmspace early, to stop pmap_growkernel from stomping on memory, and (2) to defer part of the initialization of new page directories until p_vmspace is initialized. PR: kern/12378 Submitted by: tegge Reviewed by: dfr Notes: svn path=/head/; revision=48963
* Fixed missing changes from sys/pc98/pc98/pc98.c when new-bus was integrated.Yoshihiro Takahashi1999-07-212-2/+44
| | | | | | | | | | - In isa_dmastart() and isa_dmadone(), cache flush. - Correct current word register address. Submitted by (partial): Toshikazu Kaho <kaho@elam.kais.kyoto-u.ac.jp> Notes: svn path=/head/; revision=48961
* Remove the RCS "Log" and all the verbiage it has generated.Poul-Henning Kamp1999-07-2120-2608/+24
| | | | Notes: svn path=/head/; revision=48960
* Hack to work around a NULL pointer dereferencation that can be triggeredJoerg Wunsch1999-07-212-2/+10
| | | | | | | | | | | by removing a floppy that as being operated on. The spagghetti is hardly understandable at all anymore, so i can't 100 % ascertain this is really the Right Thing to do, maybe our new floppy driver maintainer, Jesus Monroy Jr can do this. :-)) Notes: svn path=/head/; revision=48959
* Hopefully make the CMD640B workaround actually work.Peter Wemm1999-07-211-9/+6
| | | | Notes: svn path=/head/; revision=48955
* Walk around the end of all the silly guessing of device types and unitMike Smith1999-07-216-9/+108
| | | | | | | | | | numbers that we have been doing in the past, and read /etc/fstab off the proposed root filesystem to determine the actual device name and vfs type for the root filesystem. These are then exported to the kernel via the environment variable vfs.root.mountfrom. Notes: svn path=/head/; revision=48952
* Slight cleanups of the Cyrix 5530 UDMA code.Julian Elischer1999-07-201-100/+125
| | | | | | | | | Also includes a workaround fro an apparent chip bug where UDMA mode 2 can overpower the UDMA engine enough that it will hog the PCI bus to the exclusion of the processor. Notes: svn path=/head/; revision=48950
* Fix a REALLY embarrassing mistake. Don't look; I warned you.Brian Feldman1999-07-201-2/+2
| | | | Notes: svn path=/head/; revision=48949
* Make a dev2budev() function, and use it. This refixes pstat (working, broken,Brian Feldman1999-07-204-9/+16
| | | | | | | | | | working, broken, working) and savecore (working, working, broken, working, working). Sorta Reviewed by: phk Notes: svn path=/head/; revision=48948
* Convert the xl driver to newbus. It is now possible to make this driverBill Paul1999-07-202-88/+127
| | | | | | | | | | | | | into a loadable module, and all of the platform dependencies are gone (except for the alpha_XXX_dmamap() thing, which is another issue -- I still don't know how to use the busdma stuff with a network driver). Also increase the delay in xl_reset(); testing on a 486/66 with a 3c905C shows that reading the EEPROM fails immediately after a reset. Waiting a little longer after the reset completes seems to fix it. Notes: svn path=/head/; revision=48947
* dev2udev() returns a CDEV udev_t, but we use block io in savecore. SavecoreBrian Feldman1999-07-201-2/+5
| | | | | | | | | | also gets the device by st_rdev, which is alright except for the fact that the sysctl kern.dumpdev passed out a char device. This is a workaround. Sorry for not committing the fix earlier, before people started having problems. Notes: svn path=/head/; revision=48944
* Correct the alignment of some of the members in the wi_frame structure.Bill Paul1999-07-202-6/+10
| | | | | | | | | The structure is the right length, but some of the members (notably wi_q_info) were off a bit. This causes the received signal strength values to appear bogus. Notes: svn path=/head/; revision=48940
* I missed a not. Also, remove invltlb(), since it's "unncessary [sic] becauseBrian Feldman1999-07-201-4/+2
| | | | | | | wbinvd already flushes the the TLB." Notes: svn path=/head/; revision=48937