Creating USB serial device driver

I have a simple USB device that needs a driver for reading/writing data. It's a single endpoint with only one configuration, one interface, and one endpoint. I need the driver accessible through a /dev/tty* type serial interface.


Is there any sample code out there for such a device? Or for the Apple FTDI driver, which is similar?