setpci to disable usb3 ports on TUSB7320

# setpci -d 104c:8241 e0.L
00000000
# setpci -d 104c:8241 e0.L=0300
# setpci -d 104c:8241 e0.L
00000300

read/write eeprom

# $1 = offset
readEEPROM()
{
    setpci -d $DEVICE b1.b=$1
    setpci -d $DEVICE b2.b=a1
    setpci -d $DEVICE b0.b
}

# $1 = offset $2 = value
writeEEPROM()
{
    setpci -d $DEVICE b0.b=$2
    setpci -d $DEVICE b1.b=$1
    setpci -d $DEVICE b2.b=a0
}

No comments: