tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: RFC: gpio attachment for ppbus

> Second, ppbus is extended to attach a gpiobus which supports 17 pins
> of the parallel port (the remaining pins are hardwired to GND).
> There are 12 output pins and 5 input pins, and it is not possible to
> change their direction or set any other characteristics.  A few pins
> are inverted by the hardware, the driver knows about them and adjusts
> the values read or written accordingly.  The ppbus(4) and gpio(4)
> manpages are updated, too.

> Please comment.  If possible, I would like to see this in 5.0 :)

I like it.  I've recently been doing a lot of parallel-port-driven
electronics, and I have hacks in the lpt driver for the purpose.  It'd
be good to have a non-hacky way to do that.

One thing I would suggest is that you document which order the data
pins and the control pins are written in, when changing both.  (Or does
the scaffolding allow userland to control that order?  I don't know

/~\ The ASCII                           der Mouse
\ / Ribbon Campaign
 X  Against HTML     
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index