Commit Graph

28 Commits

Author SHA1 Message Date
wiz f05e6f1a3a occured -> occurred. From Peter Postma. 2004-02-24 15:12:51 +00:00
jdolecek 63e9ee7bf5 add Gary Thorpe copyright notice 2004-02-10 21:55:38 +00:00
jdolecek e5d99e330f inform better of what exactly is printed in ppbus_scan_bus(), and only
print anything with PPBUS_VERBOSE || PPBUS_DEBUG
2004-02-10 18:13:12 +00:00
jdolecek 9300becc32 allow setting of interrupt usage, priming and auto LF behaviour
via ioctl; drop the traditional device minor mapping for those in favour
of setting via lptctl(8)

introduce notion of 'control' device (minor bit 0x100 set); ATM this
device always skips the priming, which allows device open even with
disconnected printer

this also changes the default for interrupt use - polling is used
by default now
2004-02-03 21:15:03 +00:00
jdolecek f44dc9ed8b overhaul the ioctl interface to be better suited for extensions and to
reduce number of separate ioctls - have only 'get mode', 'set mode',
'get flags', 'set flags'
2004-02-03 19:57:00 +00:00
jdolecek 9898c64ca9 g/c some unused/write-only/redundant lpt_softc stuff
some style changes in lptwrite() + some printfs adjusted
2004-02-03 18:48:39 +00:00
jdolecek f5e874fba4 make compilable with option DONTPROBE_1284 2004-02-01 17:28:48 +00:00
jdolecek 8081dfaa4b whitespace fixes, make LPTIO_DISABLE_DMA 'succeed' if DMA is not supported 2004-01-30 11:40:55 +00:00
jdolecek bb920938c0 whitespace police 2004-01-28 18:54:32 +00:00
jdolecek f06d010f7f make testbyte[] in lpt_detect() static const 2004-01-28 18:03:45 +00:00
jdolecek 73acd716fb drop #ifdef _KERNEL, this is kernel-only header 2004-01-28 17:58:42 +00:00
jdolecek 5863b95fcf copyright police 2004-01-28 17:35:58 +00:00
drochner 39abe92ecb add a "pps" device to get pulse-per-second signals into ntpd 2004-01-28 17:27:06 +00:00
jdolecek 9e77fbccf8 drop #ifdef _KERNEL (these are kernel-only headers)
add some comments for the multiple inclusion protection #endif's
2004-01-28 17:11:48 +00:00
jdolecek 89ba3070d0 do not use enums in ioctl structure, use fixed width integers instead
g/c boolean_t enum, explicitly assign numbers for lpt_mode_t enum

Note: lptctl needs to be recompiled to print status properly withh new kernel
2004-01-28 09:29:06 +00:00
jdolecek ce4629f6f2 say 'port mode = <foo>' in autoconf message, so that it would be more
clear it's port attribute, not driver attribute
2004-01-25 11:43:09 +00:00
bjh21 1f725099f3 According to the OED, the variant spelling "negociate" died out in the
mid-19th century.  Use "negotiate", which is the current spelling, has
always been more common, and is closer to the Latin to boot.
2004-01-25 00:41:02 +00:00
bjh21 1c34707a4c Remove dollar signs from foreign RCSIDs per doc/3RDPARTY.
Add __KERNEL_RCSID() to .c files.
2004-01-25 00:28:01 +00:00
bjh21 58859f40c7 Don't use "int" when we mean "size_t". Fixes compile on ARM. 2004-01-22 01:18:54 +00:00
bjh21 92b303af22 Kernel code should include <sys/types.h> or <sys/param.h> first.
(fixes compile on acorn32)
2004-01-22 01:17:03 +00:00
bjh21 f0b419e554 Don't use "int" when we mean "size_t". Fixes compilation on ARM. 2004-01-22 01:16:02 +00:00
bjh21 87484bb5fc Kernel code should include <sys/types.h> or <sys/param.h> first.
(fixes compiling on acorn32)
2004-01-22 01:13:21 +00:00
bjh21 f782033436 Add RCSID comments. 2004-01-21 00:33:37 +00:00
jdolecek b5b875ef06 cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
  is included there too; dev/ic/lpt.c is not included if ppbus is
  configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
  glue moved to conf/files and dev/pci/files.pci respectively; remove
  device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
  glue
2004-01-20 19:58:01 +00:00
jdolecek 9bf083c370 attach this with lpt_ppbus, just to make co-existence with dev/ic/lpt.c
easier
fix a printf() format string
2004-01-20 19:16:13 +00:00
jdolecek ebe00413ad attach this as 'plip', rather than 'lp'
fix label placement warning
2004-01-20 19:11:52 +00:00
jdolecek fc1297dc93 fix va_arg() warning, and label placement warning
XXX perhaps MS_TYP_CHA should go completely, it's equal to MS_TYP_INT
XXX effectively
2004-01-20 19:01:22 +00:00
jdolecek e23cd1a78a Import Gary Thorpe's netbsd-ppbus 1.3. This is NetBSD port
of FreeBSD Parallel Port Bus framework. Work in progress.
2004-01-19 23:22:23 +00:00