summaryrefslogtreecommitdiff
path: root/sys/dev/ofw
AgeCommit message (Collapse)Author
2000-05-16Nuke dk_establish() from orbit except from those ports which still usethorpej
it to determine the boot device: mvme68k, pc532, macppc, ofppc. Those platforms should be changed to use device_register(). In the mean time, those ports defined __BROKEN_DK_ESTABLISH.
2000-04-14Fix some callout fallout. Hi Jason!scw
2000-03-24Update several ports to at least work again without IPKDBws
after the update of that. Sorry for breaking this with my last changes :-(. Fixes PR#9671 by Lennart Augustsson.
2000-03-23New callout mechanism with two major improvements over the oldthorpej
timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel. The old timeout()/untimeout() API has been removed from the kernel.
2000-03-13Fix doubled 'the's in comments.soren
1999-05-18Rework layer 2 protocol input routines. Instead of calling e.g. ether_input()thorpej
directly, call the function pointer (*if_input)(ifp, m). The input routine expects the packet header to be at the head of the packet, and will adjust as necessary. Privatize the layer 2 input and output routines, allowing *_ifattach() to set them up as appropriate.
1999-05-05Fix OFW_PCI_PHYS_HI_DEVICEMASK value.tsubai
1999-05-04Make this compile again.thorpej
1999-05-04Define some things related to the PCI Bus binding to OpenFirmware.thorpej
1999-03-10oops, fix previous.mrg
1999-03-09no need to use __P inside __P.mrg
1999-02-03Update last prototyping change.pk
1999-02-02Make this pass the `strict prototype' test.pk
1998-07-22Add common OpenFirmware network interface functions. Currently supportsthorpej
decoding the `supported-network-types' and `chosen-network-type' properties into ifmedia words.
1998-07-05defopt INET, NETATALK.jonathan
1998-06-12Rework the way kernel include files are installed. In the new method,cgd
as with user-land programs, include files are installed by each directory in the tree that has includes to install. (This allows more flexibility as to what gets installed, makes 'partial installs' easier, and gives us more options as to which machines' includes get installed at any given time.) The old SYS_INCLUDES={symlinks,copies} behaviours are _both_ still supported, though at least one bug in the 'symlinks' case is fixed by this change. Include files can't be build before installation, so directories that have includes as targets (e.g. dev/pci) have to move those targets into a different Makefile.
1998-06-10Missing include <sys/systm.h>.tv
1998-03-21Replace TS_WOPEN with t_wopen, per mail on tech-kern.mycroft
1998-03-21-Wallcgd
1998-03-21-Wall (one real bug, even!)cgd
1998-02-24Forcibly NUL-terminate the path name, just to be sure.mycroft
1998-02-24Minor style change.mycroft
1998-02-24Several things:mycroft
Clean up the name space here a bit. Add a `busname' element to struct ofprobe (now struct ofbus_attach_args), and check against it. Nuke `ofroot'. Rename the `openfirm' attribute to `ofbus'.
1998-02-16Remove "class" declarations, and add "devclass" declarations wherethorpej
appropriate. Fix several inconsistencies between device class and attributes. Mostly from Chris Demetriou.
1998-02-03s/of_nodename/of_packagename/. Eventually, we'll probably want somethingcgd
similar for instances.
1998-02-03in ofbattach(), don't both doing an ofbprint() by hand if the root node.cgd
The old ofbprint() wasn't particularly good (it forced the root node to have a 'name' property, which apparently violates the OFW spec), and the new one (though it normally prints more useful information) has nothing useful to say about the root node. It's not clear to me that 'ofroot' should exist at all.
1998-02-02make ofbprint() use of_nodename(). cleanup.cgd
1998-02-02add of_nodename(), a function to stuff the last component of a node'scgd
name into a caller-provided buffer (helpful for generating autoconfiguration output). Also, other minor cleanup.
1998-02-02add a prototype for of_nodename(), a function to stuff the lastcgd
component of a node's name into a caller-provided buffer (helpful for generating autoconfiguration output).
1998-02-02Prototype OF_getproplen().thorpej
1998-01-28prototype of_compatiblecgd
1998-01-28clean up comments and includes. add an of_compatible() functioncgd
which checks for the presence of any of a set of caller-provided strings in a node's "compatible" property (the _right_ way to determine driver compatibility).
1998-01-27Make sure the data after the Ethernet header is aligned. (It's beencgd
in the Shark source tree for a while, but Jason's recent commit to dp8390.c spurred me to check it in here.) XXX Assumes the device is an ethernet, but then so does other code in this driver.
1998-01-26clean up for other changes (removal of ofnmmatch(), addition ofcgd
of_decode_int()), reorganize.
1998-01-26of_decode_int() the stdin and stdout properties.cgd
1998-01-26new file containing common OFW-related routines. Right now just containscgd
of_decode_int(), a function which decodes OFW integer properties.
1998-01-26(1) kill ofnmmatch(); nothing used it (and it's not clear thatcgd
anything _should_ use it). (2) in the child properties check, also check for 'compatible,' and config_found() if the child has it.
1998-01-26add ofw_subr.c, a file containing common OFW routines.cgd
1998-01-22fix typo: s/max-address/mac-address/cgd
1998-01-12Update for config changes.thorpej
1997-10-08Oops, fix a couple of typos.thorpej
1997-10-08Implement DIOCGDEFLABEL.thorpej
1997-07-23RCS id police.thorpej
1997-07-23Fix an oversight and a typo.thorpej
1997-06-24Three changes to ofdsize():thorpej
- If the partition is already open, skip the open/close step. (Sync with other disk drivers.) - foosize()'s return value is in DEV_BSIZE units; adjust the size obtained from the disklabel accordingly. - Pass correct arguments to ofdopen() and ofdclose().
1997-04-28DTRT if OF_read() returns 0 when no data is available.mycroft
1997-04-28Oops; forgot to GC the last mbuf allocated when out of clusters.mycroft
Also, DTRT if OF_read() returns 0 when no data is available..
1997-04-24Fix typo in previous.mycroft
1997-04-24If we fail to allocate a cluster to hold a large packet, simplymycroft
drop it rather than using a chain of tiny mbufs.
1997-04-16Update for no __BROKEN_INDIRECT_CONFIG.thorpej