chip->devs[idx].shadow_shift = shadow_pos * 4;
static void init_viadev(via82xx_t *chip, int idx, unsigned int reg_offset, int direction){	chip->devs[idx].reg_offset = reg_offset;	chip->devs[idx].direction = direction;	chip->devs[idx].port = chip->port + reg_offset;}