summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uftdireg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/uftdireg.h')
-rw-r--r--sys/dev/usb/uftdireg.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/sys/dev/usb/uftdireg.h b/sys/dev/usb/uftdireg.h
index a7c6edc..78c9349 100644
--- a/sys/dev/usb/uftdireg.h
+++ b/sys/dev/usb/uftdireg.h
@@ -91,23 +91,11 @@ enum {
ftdi_sio_b115200 = 9
};
-enum {
- ftdi_8u232am_b300 = 0x2710,
- ftdi_8u232am_b600 = 0x1388,
- ftdi_8u232am_b1200 = 0x09c4,
- ftdi_8u232am_b2400 = 0x04e2,
- ftdi_8u232am_b4800 = 0x0271,
- ftdi_8u232am_b9600 = 0x4138,
- ftdi_8u232am_b19200 = 0x809c,
- ftdi_8u232am_b38400 = 0xc04e,
- ftdi_8u232am_b57600 = 0x0034,
- ftdi_8u232am_b115200 = 0x001a,
- ftdi_8u232am_b230400 = 0x000d,
- ftdi_8u232am_b460800 = 0x4006,
- ftdi_8u232am_b921600 = 0x8003,
- ftdi_8u232am_b2000000 = 0x0001, /* special case for 2M baud */
- ftdi_8u232am_b3000000 = 0x0000, /* special case for 3M baud */
-};
+#define FTDI_8U232AM_FREQ 3000000
+
+/* Bounds for normal divisors as 4-bit fixed precision ints. */
+#define FTDI_8U232AM_MIN_DIV 0x20
+#define FTDI_8U232AM_MAX_DIV 0x3fff8
/*
* BmRequestType: 0100 0000B
OpenPOWER on IntegriCloud