summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
1999-11-13syncTheo de Raadt
1999-11-13add another modemTheo de Raadt
1999-11-13FIBMAP ioctl from Linux, only usable on ISO 9660 FS. Note that the lbaAngelos D. Keromytis
returned is in 512-byte sectors, so if you're going to use it for things like DVD, you need to divide the result by 4 (for 2048-byte sectors). OK deraadt@
1999-11-13from chuq@chuq.com: several fixes to copy{in,out,}str() from charlesTheo de Raadt
and myself: don't panic if maxlen == 0, just return ENAMETOLONG. treat maxlen as unsigned like the manpage indicates. avoid crashing if the userspace address is >= KERNBASE. make sure *done is 0 when no bytes are copied.
1999-11-12Break out the allocation of pv entries and 4m pagetables into functions.Artur Grabowski
This is a preparation to make them non-sleeping.
1999-11-12This shouldn't have been committed with the previous commit, revertAngelos D. Keromytis
(experimental code)
1999-11-12Merge dvdio.h and cdio.h, don't use typedefs, get rid of bitfields (noAngelos D. Keromytis
good reason to use them, not packed structures anyway).
1999-11-12Use cdio.h instead of dvdio.hAngelos D. Keromytis
1999-11-11SCSI commands do not send data in both directions in the data phase.Constantine Sapuntzakis
Fixes DMA bug Angelos was seeing with DVD stuff. Happy ripping!
1999-11-11Pool will not work with old vm and is only used by uvm. Remove non-uvm code.Artur Grabowski
1999-11-11add a powerhook to disable DMA on suspend. okay jason@Niels Provos
adapted from NetBSD Thu Oct 28 19:21:51 1999 UTC by sommerfeld: Fix suspend/resume-related problems observed on fxp0 on Sony Z505S: Symptoms: system would crash with "data modified on free list" pool panic from the mbuf cluster pool shortly after a resume. The cluster in question contained a valid 82557 receive descriptor and an IP packet. Happened sporadically in normal use. Easiest way for me to reproduce it was to run tcpdump and a flood ping and do a suspend/resume cycle or two. Changes: - in interrupt handler, if the interface isn't in IFF_RUNNING state, just ack interrupts and return; don't try to receive packets, queue new descriptors, etc., etc., - add power control hook to take interface down on suspend, and restart it (if it was up) on resume. - tweaks to fxp_stop and fxp_shutdown to avoid recursive panics due to the (now fixed) bug.
1999-11-11Delay USB device attachment to prevent lost interrupts when probing uaudio.Hakan Olsson
1999-11-11USB Audio, from NetBSD (augustss@carlstedt.se). Imported by me and niklas@.Hakan Olsson
1999-11-11General cleanup of pmap.Artur Grabowski
- MACHINE_NONCONTIG will no longer work and all code that is not MACHINE_NEW_NONCONTIG is removed. - Kill the pv_table hack which adds complexity to the code and wastes some memory, let the vm "handle" the pv lists through the vm_physmem array, this makes allocation a lot easier. - kill the managed() macro, since it was only used to see if pvhead would end up in a "hole" in pv_table. - pvhead() is now a function that returns NULL if the page is unmanaged. It also takes a page number as an argument instead of the physical address, since in most cases pvhead was called as pvhead(ptoa(pa)) anyway and it did an atop internally.
1999-11-10Fix to use enoioctlConstantine Sapuntzakis
1999-11-10Fix typo in printfChris Cappuccio
1999-11-10include syscallnames only if compiling w/ SYSCALL_DEBUG.Michael Shalayeff
was already so for native and sunos, the rest was just wasting space on it. niels@ millert@ ok
1999-11-09Fix lengths of scsi cmdsAngelos D. Keromytis
1999-11-09Add SIOCSIFMEDIA and SIOCGIFMEDIA to the switch in ifioctl(). SIOCSIFMEDIATodd C. Miller
is only allowed if the user is the superuser. Aparently this got missed when the ifmedia support was added in ages ago. More or less based on how NetBSD does it (though it is rather obvious).
1999-11-09syncNiels Provos
1999-11-09neomagic 256avNiels Provos
1999-11-09Adapt to changed pmap_enter API (the extra argument is a no-op).Artur Grabowski
1999-11-09Adapt to pmap_enter changes.Artur Grabowski
1999-11-09Add OpenBSD tags.Dale S. Rahn
changes to boot on Apple iMac G3 (333). ethernet address changes Locore.c OpenBSD tag hack to delay decrementer exception until after bootload, apple OFW enables interrupts during "system calls" add OF_call_method, to make ofw call by name. Apple OFW can return unexpected values from getchar calls. alloc.c OpenBSD tag boot.c OpenBSD tag updated (but still unused load symbol code). Code cleanup for egcs. cache.c OpenBSD tag use dcbst, not dcbf icbi has both arguments as registers, not constant and register. net.c OpenBSD tag netif_of.c OpenBSD tag add "local-mac-address" to methods of fetching mac address, it can be stored in that variable or in mac-address. support dma buffers, add additional return value for OF_read for network timeout purposes. ofdev.c OpenBSD tag support dma buffers, ofdev.h OpenBSD tag add dmabuf remove MAC default kernel def. ofwmagic.S OpenBSD tag openfirm.h OpenBSD tag boot.mac/Makefile Build debug, - not used for version 3 apple openfirmware, ie imacs.
1999-11-09Remove old unused config files.Dale S. Rahn
IPX added to GENERIC, only because last released kernels were built that way.
1999-11-09Additional changes due to the fallout of the p4e -> ppc changes.Dale S. Rahn
1999-11-09Merge error in previous version caused compilation failure.Dale S. Rahn
Commit properly started and terminated.
1999-11-09add memset to list of files to build.Dale S. Rahn
1999-11-09autoconf.hDale S. Rahn
add mac hooks to the powerpc config structure, probably a hack, and certainly needs to be cleaned up. bus.h p4e_ -> ppc_X add write_multi and prototypes for bus_space_X_raw_multi functions. intr.h add structure for interrupt handler. pio.h remove the unnecessary and slowing "sync" instruction from each pio access. remove unnecessary newline characters from the generated asm. eieio after writes, but before reads. types.h formatting change vmparam.h change powerpc kernel virtual memory sizing from a fixed segment to a variable, initialized with a segment size, this is so that the pmap allocator can steal virtual memory, if vm is not yet set up. Necessary for mapping devices before the kernel vm structures are initialized.
1999-11-09in the ifdef POWERPC section, do use ppc, not p4e, for the iohandleDale S. Rahn
for the console configuration.
1999-11-09syncChris Cappuccio
1999-11-09Add Triones/Highpoint HPT343, HPT366Chris Cappuccio
1999-11-09autoconf.c:Dale S. Rahn
calculate delay time for delay() before it is acutally used. add support for md_diskconf come closer to supporting crashdumps, eventually this code should be un if 0 ed and supported. add the wd device as a supported device, fix some comments. clock.c: support calculation of delay loop earlier, do the spin loop correcly, unsigned math on the lower half, not signed math. conf.c: addd support for wd driver, block major 0, char major 11. machdep.c: bus_space_map becomes a real function, not just inlined function. Support devices that are not mapped with bats (most still currently are mapped with bats,...). BAT mapping does not allow proper mapping of cachable devices. mapiodev HACK, NEEDS TO BE REMOVED. added for quicker import of BROKEN mac drivers. the drivers NEED to be rewritten in a busified manner. it would FIX all of the endian swabbing done by each driver. (Is that emphasized enough?) bus_space_(read|write)_raw_multi as functions, should these be turned into inline functions and put in bus.h? ofw_machdep.c: removed extranious variable. openfirm.c: telling openfirmware to "boot" will put the system in somewhat of a strange state, try reset-all, but that typically fails, therefore, try OF_exit before spinning. pmap.c: support stealing memory from kernel address space so that mappings can be created before vm is initalized. vm_machdep.c: maybe the meaning of removing this will later become obvious. ???
1999-11-08Support for imac drivers, Additional configurations for mac kernels.Dale S. Rahn
Some mac drivers mentioned in the config files may not be be currently supported.
1999-11-08Changes for imac support. support for VI computers and MCG PowerstackDale S. Rahn
will need to be merged back in. Both are currently untested. mac interrupt support is currently a big hack and needs to be redesigned as part of the system, several of the mac drivers need busified also.
1999-11-08Initial import of NetBSD macppc code to allow OpenBSD/powerpc to runDale S. Rahn
on the imac computer, Additional hardware and driver support will follow. Initially wdc_obio support the imac (333Mhz) atapi cdrom and the ATA harddrive. also Bmac ethernet is supported at least at 10Mb.
1999-11-08move MI definition of rd into it's MI place also fixingMichael Shalayeff
attributes, allowing kernels to exist w/ rd as the only disk device. tested on a few archs; niels@ & millert@ ok
1999-11-07regen.Federico G. Schwindt
1999-11-07sigh, tag shouldn't be a comment in *devs.Federico G. Schwindt
1999-11-07sync with NetBSD.Federico G. Schwindt
1999-11-07regen.Federico G. Schwindt
1999-11-07oops. add OpenBSD tag.Federico G. Schwindt
1999-11-07New devices.Federico G. Schwindt
1999-11-07add APM powerhooks.Niels Provos
from NetBSD, Sat Jun 26 08:25:25 1999 UTC by augustss: Add powerhooks, i.e., the ability to register a function that will be called when the machine does a suspend or resume. XXX Will go away when Jason's kevents come to life.
1999-11-06make ramdiskB fitTheo de Raadt
1999-11-06move sea* to RAMDISKBTheo de Raadt
1999-11-06syncTheo de Raadt
1999-11-06I shortened these names ON PURPOSE. Do NOT make them long again!Theo de Raadt
1999-11-05MACHINE_NEW_NONCONTIG is now default even without uvm.Artur Grabowski
1999-11-05Since we no longer allocate the iommu page tables in pmap_bootstrap, we canArtur Grabowski
remove unavail_{start,end} and simplify the code in pmap_page_upload.