History log of /src/sys/arch/atari/dev/lpt.c |
Revision | | Date | Author | Comments |
1.40 |
| 06-Jan-2023 |
tsutsui | TAB/spaces/indents cleanup.
|
1.39 |
| 26-Jun-2022 |
tsutsui | Make local devsw functions static.
No visible regression on TT030.
|
1.38 |
| 03-Sep-2018 |
riastradh | 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.37 |
| 25-Jul-2014 |
dholland | branches: 1.37.26; 1.37.28; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.36 |
| 16-Mar-2014 |
dholland | branches: 1.36.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.35 |
| 27-Oct-2012 |
chs | branches: 1.35.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.34 |
| 13-Apr-2010 |
tsutsui | branches: 1.34.8; 1.34.18; Include "ioconf.h" to declare struct cfdriver foo_cd.
|
1.33 |
| 12-Apr-2010 |
tsutsui | Replace old MD sicallback functions with MI softint(9).
|
1.32 |
| 23-Nov-2009 |
rmind | branches: 1.32.2; 1.32.4; Use lwp_getpcb() on m68k ports, clean from struct user usage.
|
1.31 |
| 08-Jul-2009 |
tsutsui | Merge local <atari/atari/intr.h> into common <machine/intr.h>.
|
1.30 |
| 13-Jun-2008 |
cegger | use device_lookup_private to get softc
|
1.29 |
| 07-Mar-2008 |
cube | branches: 1.29.2; 1.29.4; 1.29.6; 1.29.8; Split the softc from the device_t for all lpt(4) variants and attachments except the ppbus stuff (which doesn't compile) and ulpt(4) which is unrelated and can be dealt with separately.
As usual, it comes with related cosmetic changes.
|
1.28 |
| 17-Oct-2007 |
garbled | branches: 1.28.12; 1.28.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.27 |
| 08-Oct-2007 |
ad | Merge brelse() changes from the vmlocking branch.
|
1.26 |
| 09-Jul-2007 |
ad | branches: 1.26.8; 1.26.10; 1.26.12; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.25 |
| 04-Mar-2007 |
christos | branches: 1.25.2; 1.25.4; 1.25.10; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.24 |
| 11-Dec-2005 |
christos | branches: 1.24.26; merge ktrace-lwp.
|
1.23 |
| 15-Jul-2003 |
lukem | branches: 1.23.16; __KERNEL_RCSID()
|
1.22 |
| 23-Oct-2002 |
jdolecek | branches: 1.22.6; 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.21 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.20 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.19 |
| 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.18 |
| 16-Jan-2001 |
thomas | branches: 1.18.4; 1.18.8; 1.18.16; Let lpmatch recognice the printer.
|
1.17 |
| 29-Mar-2000 |
leo | Nuke a bunch of cf_unit abuses.
|
1.16 |
| 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.15 |
| 06-Apr-1999 |
pk | branches: 1.15.2; 1.15.8; Move advertisement text into a comment of its own.
|
1.14 |
| 15-Aug-1998 |
mycroft | branches: 1.14.6; Make copyright notices with my name consistent.
|
1.13 |
| 15-Jan-1998 |
leo | Make this compile again after the latest config changes.
|
1.12 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.11 |
| 30-Jul-1997 |
leo | Rename lpt to lp on some places to avoid botches between files.isa and files.atari.
|
1.10 |
| 26-Dec-1996 |
leo | branches: 1.10.10; Add intr_establish/disestablish functions. Currently only the lpt-driver is converted to use them...
|
1.9 |
| 20-Dec-1996 |
leo | Get rid of BROKEN_INDIRECT_CONFIG
|
1.8 |
| 20-Dec-1996 |
leo | Get rid of BROKEN_INDIRECT_CONFIG
|
1.7 |
| 17-Nov-1996 |
leo | Plug some spl-holes in the lp-driver. Also be more strict in protecting the register access to the psg-chip. The combination of those bugs caused the printer to print garbage sometimes.
|
1.6 |
| 13-Oct-1996 |
christos | backout previous kprintf changes
|
1.5 |
| 11-Oct-1996 |
leo | - Fix configuration name of 'lpt' - add 'pcibus' as a mainbus device.
|
1.4 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.3 |
| 14-May-1996 |
leo | Remove a line of debugging code.
|
1.2 |
| 18-Apr-1996 |
leo | Yet more prototyping and -Wall fixes.
|
1.1 |
| 27-Mar-1996 |
leo | Add centronics printer driver.
|
1.10.10.1 |
| 23-Aug-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.14.6.1 |
| 07-Apr-1999 |
pk | branches: 1.14.6.1.2; Pull up from trunk: copyright text warts.
|
1.14.6.1.2.1 |
| 21-Jun-1999 |
thorpej | Sync w/ -current.
|
1.15.8.1 |
| 21-Dec-1999 |
wrstuden | Initial commit of recent changes to make DEV_BSIZE go away.
Runs on i386, needs work on other arch's. Main kernel routines should be fine, but a number of the stand programs need help.
cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512 byte block devices. vnd, raidframe, and lfs need work.
Non 2**n block support is automatic for LKM's and conditional for kernels on "options NON_PO2_BLOCKS".
|
1.15.2.2 |
| 18-Jan-2001 |
bouyer | Sync with head (for UBC+NFS fixes, mostly).
|
1.15.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.18.16.1 |
| 17-May-2002 |
gehenna | Add device switch.
|
1.18.8.3 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.18.8.2 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.18.8.1 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.18.4.1 |
| 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.22.6.4 |
| 17-Jan-2005 |
skrll | Adapt to branch.
|
1.22.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.22.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.22.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.23.16.4 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.23.16.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.23.16.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.23.16.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.24.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.25.10.2 |
| 16-Oct-2007 |
garbled | Sync with HEAD
|
1.25.10.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.25.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.25.2.2 |
| 09-Oct-2007 |
ad | Sync with head.
|
1.25.2.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.26.12.1 |
| 14-Oct-2007 |
yamt | sync with head.
|
1.26.10.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.26.10.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.26.8.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.28.16.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.28.16.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.28.12.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.29.8.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.29.6.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.29.4.4 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.29.4.3 |
| 11-Mar-2010 |
yamt | sync with head
|
1.29.4.2 |
| 18-Jul-2009 |
yamt | sync with head.
|
1.29.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.29.2.1 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.32.4.1 |
| 30-May-2010 |
rmind | sync with head
|
1.32.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.34.18.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.34.18.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.34.8.2 |
| 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.34.8.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.35.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.36.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.37.28.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.37.26.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|