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:
@@ -46,6 +46,9 @@ scsi_controller_added(device_node *parent)
|
|||||||
|
|
||||||
{
|
{
|
||||||
device_attr attrs[] = {
|
device_attr attrs[] = {
|
||||||
|
{ B_DEVICE_PRETTY_NAME, B_STRING_TYPE,
|
||||||
|
{ string: "SCSI Controller" }},
|
||||||
|
|
||||||
// remember who we are
|
// remember who we are
|
||||||
// (could use the controller name, but probably some software would choke)
|
// (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
|
// 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
|
// ready to register
|
||||||
device_attr attrs[] = {
|
device_attr attrs[] = {
|
||||||
|
{ B_DEVICE_PRETTY_NAME, B_STRING_TYPE, { string: "SCSI Disk" }},
|
||||||
// tell block_io whether the device is removable
|
// tell block_io whether the device is removable
|
||||||
{"removable", B_UINT8_TYPE, {ui8: deviceInquiry->removable_medium}},
|
{"removable", B_UINT8_TYPE, {ui8: deviceInquiry->removable_medium}},
|
||||||
// impose own max block restriction
|
// impose own max block restriction
|
||||||
|
|||||||
Reference in New Issue
Block a user