SA_FLAG_OPEN
if (softc->flags & SA_FLAG_OPEN) {
softc->flags |= SA_FLAG_OPEN;
int closedbits = SA_FLAG_OPEN;
softc->flags &= ~SA_FLAG_OPEN;