diff -r d9b9bc794d10 -r ed5ac2e83495 master/ioctl.h --- a/master/ioctl.h Thu Jun 05 14:33:36 2008 +0000 +++ b/master/ioctl.h Thu Jun 05 15:39:15 2008 +0000 @@ -44,7 +44,7 @@ /*****************************************************************************/ enum { - EC_IOCTL_SLAVE_COUNT, + EC_IOCTL_MASTER, EC_IOCTL_SLAVE, EC_IOCTL_SYNC, EC_IOCTL_PDO, @@ -53,11 +53,24 @@ EC_IOCTL_DOMAIN, EC_IOCTL_DOMAIN_FMMU, EC_IOCTL_DATA, - EC_IOCTL_DEBUG_LEVEL, + EC_IOCTL_SET_DEBUG, }; /*****************************************************************************/ +typedef struct { + unsigned int slave_count; + uint8_t mode; + struct { + uint8_t address[6]; + uint8_t attached; + unsigned int tx_count; + unsigned int rx_count; + } devices[2]; +} ec_ioctl_master_t; + +/*****************************************************************************/ + #define EC_IOCTL_SLAVE_NAME_SIZE 114 typedef struct {