return self.index
def bus(self):
- #TODO: add the host
+ ret = ""
+
+ if self.index & 2:
+ ret = "External (CF) - "
+ else:
+ ret = "Internal - "
+
if self.index & 1:
- return "Slave"
+ return ret + "Slave"
else:
- return "Master"
+ return ret + "Master"
def capacity(self):
procfile = tryOpen(self.prochdx + "capacity")