Really, the only ethernet specific things that ethernet devices
call are the init_etherdev() and eth_type_trans().
However, I was more thinking along the lines of T1 and T3 drivers
which would like to switch between HDLC and synchronous ppp easily.
If a uint32 were added to the device structure as a flag for what
framing protocol the device was currently using, and a generic
type_trans() function to call the appropriate type_trans function,
it would be easy to change the framing protocol during runtime.
The device driver shouldn't have to be aware of this at all.
Rob
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html