summaryrefslogtreecommitdiff
path: root/io-module/mts_io.h
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-10-15 14:09:53 -0500
committerJohn Klug <john.klug@multitech.com>2018-10-15 14:09:53 -0500
commit75f812b964c388cd1e41d5dd77d48ad82b32ec38 (patch)
treea720efda2928df276fb382e890cab2ad947e24d0 /io-module/mts_io.h
parentd2a70d9285ca3339fa9df44b83cfe9bc0d5ce8b7 (diff)
downloadmts-io-75f812b964c388cd1e41d5dd77d48ad82b32ec38.tar.gz
mts-io-75f812b964c388cd1e41d5dd77d48ad82b32ec38.tar.bz2
mts-io-75f812b964c388cd1e41d5dd77d48ad82b32ec38.zip
Remove mtac cards. mts-io version 3.0.03.0.0
Diffstat (limited to 'io-module/mts_io.h')
-rw-r--r--io-module/mts_io.h111
1 files changed, 2 insertions, 109 deletions
diff --git a/io-module/mts_io.h b/io-module/mts_io.h
index 9f82991..5e83879 100644
--- a/io-module/mts_io.h
+++ b/io-module/mts_io.h
@@ -4,11 +4,7 @@
#include "mts_eeprom.h"
#include <linux/gpio.h>
-
-#define DRIVER_VERSION "v2.2.2"
-#define DRIVER_AUTHOR "James Maki <jmaki@multitech.com>"
-#define DRIVER_DESC "MTS-IO Controller"
-#define DRIVER_NAME "mts-io"
+/* Note that this header file is used by the MTAC driver. */
#define __log(level, name, format, args...) \
printk(level "[" name "] " DRIVER_NAME ":%s:%d: " format "\n" , \
@@ -44,75 +40,7 @@ struct device_attribute mts_dev_name = { \
}
#define VENDOR_ID_MULTITECH "Multi-Tech Systems"
-#define PRODUCT_ID_MTCDP_E1_DK "MTCDP-E1-DK"
-#define PRODUCT_ID_MT100EOCG "MT100EOCG"
-#define PRODUCT_ID_MTR "MTR"
-#define PRODUCT_ID_MTCDT "MTCDT"
-#define PRODUCT_ID_MTCAP "MTCAP"
-#define PRODUCT_ID_MTCDTIP "MTCDTIP"
-#define PRODUCT_ID_MTCDTIPHP "MTCDTIPHP"
-
-#define PRODUCT_ID_MTAC_GPIOB "MTAC-GPIOB"
-#define PRODUCT_ID_MTAC_MFSER "MTAC-MFSER"
-#define PRODUCT_ID_MTAC_ETH "MTAC-ETH"
-#define PRODUCT_ID_MTAC_LORA "MTAC-LORA"
-#define PRODUCT_ID_MTHS "MTHS"
-#define PRODUCT_ID_MTAC_PULSE "MTAC-PULSE"
-
-/* Hardware version must be fewer characters than hw_version
- in struct mts_ap_eeprom_layout */
-/* MTAC-LORA with native SPI or FTDI FT4222 */
-#define HW_VERSION_MTAC_LORA_0_0 "MTAC-LORA-0.0"
-/* MTAC-LORA2 with FTDI FT232H */
-#define HW_VERSION_MTAC_LORA_1_0 "MTAC-LORA-1.0"
-#define HW_VERSION_MTAC_LORA_1_1 "MTAC-LORA-1.1"
-#define HW_VERSION_MTAC_LORA_1_5 "MTAC-LORA-1.5"
-#define HW_VERSION_MTCBA2_2_0 "MTCBA2-2.0"
-#define HW_VERSION_MTCDP_0_0 "MTCDP-0.0"
-#define HW_VERSION_MTCDP_1_0 "MTCDP-1.0"
-#define HW_VERSION_MT100EOCG_0_0 "MT100EOCG-0.0"
-#define HW_VERSION_MTR_0_0 "MTR-0.0"
-#define HW_VERSION_MTR_0_1 "MTR-0.1"
-#define HW_VERSION_MTRV1_0_0 "MTRV1-0.0"
-#define HW_VERSION_MTRV1_0_1 "MTRV1-0.1"
-#define HW_VERSION_MTRV1_0_2 "MTRV1-0.2" // Cat M
-#define HW_VERSION_MTCDT_0_0 "MTCDT-0.0"
-#define HW_VERSION_MTCDT_0_1 "MTCDT-0.1"
-#define HW_VERSION_MTCDTIP_0_0 "MTCDTIP-0.0"
-#define HW_VERSION_MTCDTIPHP_0_0 "MTCDTIPHP-0.0"
-#define HW_VERSION_MTCAP_0_0 "MTCAP-0.0"
-#define HW_VERSION_MTCAP_0_1 "MTCAP-0.1"
-#define HW_VERSION_MTHS_0_0 "MTHS-0.0"
-
-enum {
- MTCDP_E1_DK_0_0,
- MTCDP_E1_DK_1_0,
- MT100EOCG_0_0,
- MTR_0_0,
- MTR_0_1,
- MTRV1_0_0,
- MTRV1_0_1,
- MTRV1_0_2,
- MTCDT_0_0,
- MTCDT_0_1,
- MTCDTIPHP_0_0,
- MTCAP_0_0,
- MTCAP_0_1,
- MTHS_0_0,
-};
-
-enum {
- MTAC_NONE,
- MTAC_GPIOB_0_0,
- MTAC_MFSER_0_0,
- MTAC_ETH_0_0,
- MTAC_LORA_0_0,
- MTAC_LORA_1_0,
- MTAC_LORA_1_1,
- MTAC_LORA_1_5,
- MTAC_PULSE_1_0,
-};
struct gpio_pin {
char name[32];
@@ -121,41 +49,6 @@ struct gpio_pin {
uint8_t capability;
};
-enum {
- LED_OFF,
- LED_ON,
- LED_FLASHING,
-};
-
-enum {
- RADIO_UNKNOWN,
- RADIO_LEU1, // LE910-EUG
- RADIO_LEU3, // LE910-EU1
- RADIO_LNA3, // LE910-NA1
-};
-
-enum ap {
- port_1 = 1,
- port_2,
-};
-
-enum spi_devices {
- din = 0,
- dout = 1,
- adc = 2,
-};
-
-// info for accessory port
-// contains function pointers for setup and teardown and useful info
-// each type of accessory card should have one of these
-struct ap_info {
- char product_id[32];
- bool (*setup)(enum ap port);
- bool (*teardown)(enum ap port);
- char* (*gpio_pin_name_by_attr_name)(const char* name, int port);
-};
-
-extern struct mutex mts_io_mutex;
-#endif /* ~__MTS_IO_H */
+#endif /* __MTS_IO_H */