Basically every unit that is connected to a data transfer cable is a device. PATA supports two devices per cable. In this case one unit will be called device 0 (Primary device or Master) and the other will be device 1 (Secondary device or Slave). SATA supports one device per cable.
See also: Hardware overview