summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include/disklabel.h
blob: 7eb3531ef20b5f8ec36a55ee883757dba40ae4eb (plain)
1
2
3
4
5
6
7
/*       $NetBSD: disklabel.h,v 1.4 2005/12/11 12:19:10 christos Exp $        */

#if HAVE_NBTOOL_CONFIG_H
#include <nbinclude/sparc/disklabel.h>
#else
#include <sparc/disklabel.h>
#endif /* HAVE_NBTOOL_CONFIG_H */
when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.) Remove unnecessary or redundant interface attributes where they're not needed. There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles) ...and a sentinel value CFARG_EOL. Add some extra sanity checking to ensure that interface attributes aren't ambiguous. Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?). 2020-04-14Only include opt_xxx.h headers when _KERNEL_OPT is defined.kre 2020-04-14defflag ONEWIRE_DEBUGmacallan 2020-04-14add 'driver' for DS2430A EEPROMs which simply dumps the chip's contents andmacallan status register 2020-04-14regenmacallan 2020-04-14add family 0x14 for DS2430A EEPROMsmacallan 2019-11-30Make owtemp reliable for me:ad - Don't do the calculation if there is a CRC error. - If we get any kind of error during a refresh, retry up to three times. - Add event counters to report what's going on. 2019-11-30onewire:ad - Re-do the signalling to be a little more forgiving and efficient. - If bus reset fails during probe, try a second time. - Spread out kernel threads for many busses to avoid thundering herd effect. 2019-10-25PR kern/54617: onewire(4):martin - Alter locking strategy to avoid deadlock on detach. - Auto bus probe chews CPU. Increase interval from 3s to 10s. - Put temp sensor S/N in dev description so it can be identified. - Use mutex/condvar. Patch from Andrew Doran. 2014-07-25Add d_discard to all struct cdevsw instances I could find.dholland All have been set to "nodiscard"; some should get a real implementation. 2014-05-14calculate extended precision as per DS1920/DS1820 data sheetskardel 2014-03-16Change (mostly mechanically) every cdevsw/bdevsw I can find to usedholland designated initializers. I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead. 2011-08-31Add glue code to build as module.mbalmer 2011-06-20Initialize sensor state before registering.pgoyette 2009-12-06Simplify device-activation hooks.dyoung 2009-05-12struct device * -> device_t, no functional changes intended.cegger 2009-03-18bzero -> memsetcegger 2009-01-21add a comment explaining how to regenerate onewiredevs.h and onewiredevs_data.hjnemeth 2008-12-17kill MALLOC and FREE macros.cegger 2008-10-19Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.apb Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk. 2008-05-05device_t/softc split and other related cosmetic changes.xtraeme 2008-04-08use aprint_*_dev and device_xnamecegger 2007-12-11use __KERNEL_RCSID()lukem 2007-11-16Extend the envsys2 API (one more time, sorry) as defined in:xtraeme http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html sysmon_envsys_create() and sysmon_envsys_destroy() were added to create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events). sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were added to attach/detach sensors to a specified sysmon_envsys device. The events framework is now per device and configurable via the ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8). Update all users and documentation to reflect these changes. 2007-09-05Remove ONEWIRE_NOWAIT, it's unused now.xtraeme 2007-09-05onewire_lock: remove the flags argument and change the return type to void.xtraeme This function is not expected to return an int, because rw_enter() will always succeed. 2007-09-02Convert onewire(4) to use rwlock(9) rather than lockmgr(9).xtraeme 2007-07-13Forgot to set the description in the sensor.xtraeme 2007-07-09Merge some of the less invasive changes from the vmlocking branch:ad - kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements 2007-07-04Set the state on sc->sc_sensor[0].state and not append it,xtraeme envsys2 doesn't use bits for the state member. 2007-07-04There's no need to set the "envsys-description" property in thextraeme driver's dictionary anymore, because with envsys2 you can change descriptions. 2007-07-01Imported envsys 2, a brief description of the new features:xtraeme (Part 2: drivers) * Support for detachable sensors. * Cleaned up the API for simplicity and efficiency. * Ability to send capacity/critical/warning events to powerd(8). * Adapted all the code to the new locking order. * Compatibility with the old envsys API: the ENVSYS_GTREINFO and ENVSYS_GTREDATA ioctl(2)s are supported. * Added support for a 'dictionary based communication channel' between sysmon_power(9) and powerd(8), that means there is no 32 bytes event size restriction anymore. * Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40. * All drivers with the n^2 gtredata bug were fixed, PR kern/36226. Tested by: blymn: smsc(4). bouyer: ipmi(4), mfi(4). kefren: ug(4). njoly: viaenv(4), adt7463.c. riz: owtemp(4). xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4). 2006-11-16__unused removal on arguments; approved by core.christos 2006-10-12- sprinkle __unused on function decls.christos - fix a couple of unused bugs - no more -Wno-unused for i386 2006-09-03add missing initializer.christos 2006-07-10Put appropriate prefixes on property names to reduce chances of namethorpej collisions. 2006-05-05Remove the devprop API and switch everthing over to the new proplib. Addthorpej a new device_properties() accessor for device_t that returns the device's property dictionary. 2006-04-14Fix some RCS IDs, and the comments including them.riz 2006-04-08Add NetBSD RCSIDsriz 2006-04-07Add missing $ sign at the end of the NetBSD rcsid tag.uwe 2006-04-07Regen.riz 2006-04-07Dallas Semiconductor 1-Wire bus support, from OpenBSD. Currently includesriz gpioow(4), attaching a bit-banging driver via a GPIO pin. Also, owtemp(4) which supports some of the 1-Wire temperature sensors, including the DS18b20 and DS1920 - temperatures are returned via the envsys(4) framework. Original drivers by Alexander Yurchenko (grange@openbsd), with envsys(4) support and a fix to the 1-wire search algorithm (for discovering devices on the bus) by me. As discussed on tech-kern earlier this week.