History log of /src/sys/arch/hp300/dev/ppi.c |
Revision | | Date | Author | Comments |
1.48 |
| 18-Nov-2020 |
thorpej | malloc(9) -> kmem(9)
|
1.47 |
| 03-Sep-2018 |
riastradh | branches: 1.47.12; Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these may invite multiple evaluation bugs, these do _not_ cause integer truncation.
To avoid `fixing' these cases, I first changed the name in libkern, and then compile-tested every file where min/max occurred in order to confirm that it failed -- and thus confirm that nothing shadowed min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax acorn32/if_ie.c (not included in any kernels) macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of doing things fails safe, and the goal here, after all, is to _avoid_ silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that never silently truncate. But we should avoid doing that for a while, so that existing code has a chance to be detected by the compiler for conversion to uimin/uimax without changing the semantics until we can properly audit it all. (Who knows, maybe in some cases integer truncation is actually intended!)
|
1.46 |
| 25-Mar-2017 |
tsutsui | branches: 1.46.12; 1.46.14; Include <sys/kernel.h> for hz.
Compile test only. (no HP-IB devices here)
|
1.45 |
| 25-Jul-2014 |
dholland | branches: 1.45.4; 1.45.8; 1.45.12; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.44 |
| 16-Mar-2014 |
dholland | branches: 1.44.2; Change (mostly mechanically) every cdevsw/bdevsw I can find to use 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.
|
1.43 |
| 28-Jul-2011 |
uebayasi | branches: 1.43.2; 1.43.12; 1.43.16; dev_t is uint64_t; use PRIx64 to print it. Fix DEBUG build.
|
1.42 |
| 18-Jun-2008 |
tsutsui | Make this compile.
|
1.41 |
| 13-Jun-2008 |
cegger | use device_lookup_private to get softc
|
1.40 |
| 28-Apr-2008 |
martin | branches: 1.40.2; 1.40.4; Remove clause 3 and 4 from TNF licenses
|
1.39 |
| 29-Mar-2008 |
tsutsui | branches: 1.39.2; 1.39.4; Split device_t/softc, and misc cosmetic changes.
|
1.38 |
| 17-Oct-2007 |
garbled | branches: 1.38.16; Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here.
TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted.
NOTES: pmppc was removed as an arch, and moved to a evbppc target.
|
1.37 |
| 12-Jul-2007 |
he | branches: 1.37.10; Adapt to the new signature of callout_init().
|
1.36 |
| 04-Mar-2007 |
christos | branches: 1.36.2; 1.36.10; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.35 |
| 16-Feb-2007 |
ad | branches: 1.35.2; More spllowersoftclock() fallout.
|
1.34 |
| 21-Jul-2006 |
tsutsui | Some KNF.
|
1.33 |
| 28-Mar-2006 |
thorpej | Use device_unit().
|
1.32 |
| 23-Feb-2006 |
thorpej | branches: 1.32.2; 1.32.4; 1.32.6; Use device_parent().
|
1.31 |
| 11-Dec-2005 |
christos | branches: 1.31.2; 1.31.4; 1.31.6; merge ktrace-lwp.
|
1.30 |
| 19-Feb-2005 |
tsutsui | branches: 1.30.6; Include "ioconf.h" for struct cfdriver *_cd decls.
|
1.29 |
| 28-Aug-2004 |
thorpej | branches: 1.29.4; 1.29.6; Use ANSI function decls, static, and const.
|
1.28 |
| 17-Nov-2003 |
tsutsui | TAB/space cleanup.
|
1.27 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.26 |
| 29-Jun-2003 |
fvdl | branches: 1.26.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.25 |
| 29-Jun-2003 |
thorpej | Adapt to ktrace/lwp changes.
|
1.24 |
| 23-Oct-2002 |
jdolecek | merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
|
1.23 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.22 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.21 |
| 06-Sep-2002 |
gehenna | Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch> by using this grammer.
- Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables.
- The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
|
1.20 |
| 15-Mar-2002 |
gmcgarry | branches: 1.20.4; Add RCSIDs.
|
1.19 |
| 27-May-2000 |
thorpej | branches: 1.19.6; 1.19.8; 1.19.12; sleep() -> tsleep()
|
1.18 |
| 23-Mar-2000 |
thorpej | New callout mechanism with two major improvements over the old 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.
|
1.17 |
| 05-Aug-1999 |
thorpej | branches: 1.17.2; Change the semantics of splsoftclock() to be like other spl*() functions, that is priority is rasied. Add a new spllowersoftclock() to provide the atomic drop-to-softclock semantics that the old splsoftclock() provided, and update calls accordingly.
This fixes a problem with using the "rnd" pseudo-device from within interrupt context to extract random data (e.g. from within the softnet interrupt) where doing so would incorrectly unblock interrupts (causing all sorts of lossage).
XXX 4 platforms do not have priority-raising capability: newsmips, sparc, XXX sparc64, and VAX. This platforms still have this bug until their XXX spl*() functions are fixed.
|
1.16 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.15 |
| 04-Oct-1997 |
thorpej | Copyright assigned to The NetBSD Foundation.
|
1.14 |
| 18-Jul-1997 |
jtk | branches: 1.14.2; remove old *_UNK style default defines, use standard names from locators.h
|
1.13 |
| 02-Apr-1997 |
scottr | Fix printf() and other warnings when compiled with DEBUG defined.
|
1.12 |
| 31-Mar-1997 |
scottr | Add prototypes, and make this compile with -Wall. Remove register modifier from all declarations.
|
1.11 |
| 30-Jan-1997 |
thorpej | Convert to new-style autoconfiguration; old-style config is no longer supported.
|
1.10 |
| 13-Oct-1996 |
christos | backout previous kprintf changes
|
1.9 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.8 |
| 14-Feb-1996 |
thorpej | All interrupt routines (except the HIL; don't ask) now take a pointer to a softc, rather than a unit number. Add a "dq_softc" member to struct devqueue; this is a temporary measure until the dma/controller/device callback spaghetti is untangled.
YAY! No more need for dcafastservice!
HIL: squish instances of "(void) splhil()" and "(void) spl0();".
|
1.7 |
| 02-Dec-1995 |
thorpej | Use a "match/attach" rather than "init" scheme for probing devices. This is a step towards getting the drivers ready for new config.
|
1.6 |
| 26-Oct-1994 |
cgd | new RCS ID format.
|
1.5 |
| 25-May-1994 |
mycroft | Merge with 4.4-Lite.
|
1.4 |
| 05-May-1994 |
mycroft | Most of the changes needed to make this continue to run.
|
1.3 |
| 10-Feb-1994 |
mycroft | Add arg to ioctl functions. Clean up #includes.
|
1.2 |
| 22-May-1993 |
cgd | add rcsids to everything and clean up headers
|
1.1 |
| 13-May-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 13-May-1993 |
cgd | add hp300 kernel files. generic kernel files might need some help...
|
1.14.2.1 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.17.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.19.12.4 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.19.12.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.19.12.2 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.19.12.1 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.19.8.2 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.19.8.1 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.19.6.1 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.20.4.1 |
| 17-May-2002 |
gehenna | Add device switch.
|
1.26.2.6 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.26.2.5 |
| 24-Jan-2005 |
skrll | Adapt to branch.
|
1.26.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.26.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.26.2.2 |
| 03-Sep-2004 |
skrll | Sync with HEAD
|
1.26.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.29.6.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.29.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.30.6.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.30.6.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.30.6.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.30.6.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.31.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.31.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.31.2.1 |
| 01-Mar-2006 |
yamt | sync with head.
|
1.32.6.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.32.4.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.32.2.2 |
| 11-Aug-2006 |
yamt | sync with head
|
1.32.2.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.35.2.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.36.10.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.36.2.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.37.10.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.38.16.3 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.38.16.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.38.16.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.39.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.39.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.39.2.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.39.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.40.4.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.40.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.43.16.1 |
| 18-May-2014 |
rmind | sync with head
|
1.43.12.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.43.12.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.43.2.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.44.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.45.12.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.45.8.1 |
| 26-Apr-2017 |
pgoyette | Sync with HEAD
|
1.45.4.1 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.46.14.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.46.12.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.47.12.1 |
| 14-Dec-2020 |
thorpej | Sync w/ HEAD.
|