From 979392c3e5cd32a4d570f7d37f22baebd04699ba Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 11 Nov 2005 20:59:28 +0000 Subject: Add skeleton for 3-Wire UART transport --- tools/bccmd.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tools/bccmd.c') diff --git a/tools/bccmd.c b/tools/bccmd.c index 3bdf702a..7c1260cf 100644 --- a/tools/bccmd.c +++ b/tools/bccmd.c @@ -70,6 +70,8 @@ static inline int transport_open(int transport, char *device) return csr_open_bcsp(device); case CSR_TRANSPORT_H4: return csr_open_h4(device); + case CSR_TRANSPORT_3WIRE: + return csr_open_3wire(device); default: fprintf(stderr, "Unsupported transport\n"); return -1; @@ -87,6 +89,8 @@ static inline int transport_read(int transport, uint16_t varid, uint8_t *value, return csr_read_bcsp(varid, value, length); case CSR_TRANSPORT_H4: return csr_read_h4(varid, value, length); + case CSR_TRANSPORT_3WIRE: + return csr_read_3wire(varid, value, length); default: errno = EOPNOTSUPP; return -1; @@ -104,6 +108,8 @@ static inline int transport_write(int transport, uint16_t varid, uint8_t *value, return csr_write_bcsp(varid, value, length); case CSR_TRANSPORT_H4: return csr_write_h4(varid, value, length); + case CSR_TRANSPORT_3WIRE: + return csr_write_3wire(varid, value, length); default: errno = EOPNOTSUPP; return -1; @@ -125,6 +131,9 @@ static inline void transport_close(int transport) case CSR_TRANSPORT_H4: csr_close_h4(); break; + case CSR_TRANSPORT_3WIRE: + csr_close_3wire(); + break; } } -- cgit