add support for VCAN4-1 and VCAN4-2
parent
2fefc5385d
commit
92d1e20415
20
icsscand.c
20
icsscand.c
|
|
@ -392,15 +392,14 @@ static void probe_new_devices()
|
||||||
/* figure out how many interfaces we need to make */
|
/* figure out how many interfaces we need to make */
|
||||||
switch(device->device.DeviceType)
|
switch(device->device.DeviceType)
|
||||||
{
|
{
|
||||||
|
case NEODEVICE_VCAN41:
|
||||||
|
case NEODEVICE_VCAN42:
|
||||||
case NEODEVICE_VCAN3:
|
case NEODEVICE_VCAN3:
|
||||||
num_nets = 2;
|
num_nets = 2;
|
||||||
break;
|
break;
|
||||||
case NEODEVICE_FIRE:
|
case NEODEVICE_FIRE:
|
||||||
case NEODEVICE_PLASMA_1_11:
|
case NEODEVICE_ANY_ION:
|
||||||
case NEODEVICE_PLASMA_1_12:
|
case NEODEVICE_ANY_PLASMA:
|
||||||
case NEODEVICE_PLASMA_1_13:
|
|
||||||
case NEODEVICE_ION_2:
|
|
||||||
case NEODEVICE_ION_3:
|
|
||||||
/* some ions and plasmas actually have 8,
|
/* some ions and plasmas actually have 8,
|
||||||
* but we can't tell from the PID */
|
* but we can't tell from the PID */
|
||||||
num_nets = 6;
|
num_nets = 6;
|
||||||
|
|
@ -448,16 +447,15 @@ static void probe_new_devices()
|
||||||
device->netid_to_interface[j] = -1;
|
device->netid_to_interface[j] = -1;
|
||||||
switch(device->device.DeviceType)
|
switch(device->device.DeviceType)
|
||||||
{
|
{
|
||||||
|
case NEODEVICE_VCAN41:
|
||||||
|
case NEODEVICE_VCAN42:
|
||||||
case NEODEVICE_VCAN3:
|
case NEODEVICE_VCAN3:
|
||||||
setup_interface_info(device_index, NETID_HSCAN, 0, "can0");
|
setup_interface_info(device_index, NETID_HSCAN, 0, "can0");
|
||||||
setup_interface_info(device_index, NETID_MSCAN, 1, "can1");
|
setup_interface_info(device_index, NETID_MSCAN, 1, "can1");
|
||||||
break;
|
break;
|
||||||
case NEODEVICE_FIRE:
|
case NEODEVICE_FIRE:
|
||||||
case NEODEVICE_PLASMA_1_11:
|
case NEODEVICE_ANY_PLASMA:
|
||||||
case NEODEVICE_PLASMA_1_12:
|
case NEODEVICE_ANY_ION:
|
||||||
case NEODEVICE_PLASMA_1_13:
|
|
||||||
case NEODEVICE_ION_2:
|
|
||||||
case NEODEVICE_ION_3:
|
|
||||||
setup_interface_info(device_index, NETID_HSCAN, 0, "can0");
|
setup_interface_info(device_index, NETID_HSCAN, 0, "can0");
|
||||||
setup_interface_info(device_index, NETID_MSCAN, 1, "can1");
|
setup_interface_info(device_index, NETID_MSCAN, 1, "can1");
|
||||||
setup_interface_info(device_index, NETID_HSCAN2, 2, "can2");
|
setup_interface_info(device_index, NETID_HSCAN2, 2, "can2");
|
||||||
|
|
@ -721,4 +719,4 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
return exit_code;
|
return exit_code;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue