Skip to content

Commit d19de22

Browse files
viacuda: use more appropriate command names.
1 parent e7535ea commit d19de22

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

devices/common/viacuda.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,12 +710,12 @@ void ViaCuda::pseudo_command() {
710710
this->out_buf[3] = this->poll_rate;
711711
this->out_count++;
712712
break;
713-
case CUDA_SET_DEVICE_LIST:
713+
case CUDA_SET_DEVICE_BITMAP:
714714
response_header(CUDA_PKT_PSEUDO, 0);
715715
this->device_mask = ((uint16_t)this->in_buf[2]) << 8;
716716
this->device_mask |= ((uint16_t)this->in_buf[3]);
717717
break;
718-
case CUDA_GET_DEVICE_LIST:
718+
case CUDA_GET_DEVICE_BITMAP:
719719
response_header(CUDA_PKT_PSEUDO, 0);
720720
this->out_buf[2] = (uint8_t)((this->device_mask >> 8) & 0xFF);
721721
this->out_buf[3] = (uint8_t)((this->device_mask) & 0xFF);

devices/common/viacuda.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ enum {
130130
CUDA_FILE_SERVER_FLAG = 0x13, // set file server flag
131131
CUDA_SET_AUTOPOLL_RATE = 0x14, // set auto-polling rate
132132
CUDA_GET_AUTOPOLL_RATE = 0x16, // get auto-polling rate
133-
CUDA_SET_DEVICE_LIST = 0x19, // set device list
134-
CUDA_GET_DEVICE_LIST = 0x1A, // get device list
133+
CUDA_SET_DEVICE_BITMAP = 0x19, // set device bitmap
134+
CUDA_GET_DEVICE_BITMAP = 0x1A, // get device bitmap
135135
CUDA_ONE_SECOND_MODE = 0x1B, // one second interrupt mode
136136
CUDA_SET_POWER_MESSAGES = 0x21, // set power message flag
137-
CUDA_READ_WRITE_I2C = 0x22, // read/write I2C
137+
CUDA_READ_WRITE_I2C = 0x22, // read/write I2C
138138
CUDE_TOGGLE_WAKEUP = 0x23, // toggle wake-up
139139
CUDA_TIMER_TICKLE = 0x24, // set timer tickle
140140
CUDA_COMB_FMT_I2C = 0x25, // combined format I2C transaction

0 commit comments

Comments
 (0)