scsi: add device names

Change-Id: Ifca8911a095ee93daf1b4976a037dbd7c016e923
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2494
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
X512
2020-04-20 14:56:16 +00:00
committed by Jérôme Duval
parent ffc770c1f4
commit 9219768a97
2 changed files with 4 additions and 0 deletions
@@ -46,6 +46,9 @@ scsi_controller_added(device_node *parent)
{
device_attr attrs[] = {
{ B_DEVICE_PRETTY_NAME, B_STRING_TYPE,
{ string: "SCSI Controller" }},
// remember who we are
// (could use the controller name, but probably some software would choke)
// TODO create_id() generates a 32 bit ranged integer but we need only 8 bits
@@ -556,6 +556,7 @@ das_register_device(device_node *node)
// ready to register
device_attr attrs[] = {
{ B_DEVICE_PRETTY_NAME, B_STRING_TYPE, { string: "SCSI Disk" }},
// tell block_io whether the device is removable
{"removable", B_UINT8_TYPE, {ui8: deviceInquiry->removable_medium}},
// impose own max block restriction