* Added a new B_GET_DEVICE_NAME ioctl - this should be implemented by all
drivers in the future, such that NetworkStatus and similar software can show nice names for the devices. The device manager should implement this and return the B_DEVICE_PRETTY_NAME of the device (and in turn, new style drivers should actually set this). * Implemented handling of this ioctl in the scsi_periph to return the vendor/ product strings. * Implemented this in the ATA bus manager to return the model from the info block. * KDiskDevice now fills in the partition_data::name if the B_GET_DEVICE_NAME succeeds. * As a side effect, at least BootManager now shows the drive name; maybe DriveSetup does as well for the raw device. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40231 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2008, Haiku Inc. All Rights Reserved.
|
||||
* Copyright 2002-2011, Haiku Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _DRIVERS_DRIVERS_H
|
||||
@@ -105,6 +105,7 @@ enum {
|
||||
B_GET_PATH_FOR_DEVICE, /* get the absolute path of the device */
|
||||
B_GET_ICON_NAME, /* get an icon name identifier */
|
||||
B_GET_VECTOR_ICON, /* retrieves the device's vector icon */
|
||||
B_GET_DEVICE_NAME, /* get name, string buffer */
|
||||
|
||||
B_GET_NEXT_OPEN_DEVICE = 1000, /* obsolete, will be removed */
|
||||
B_ADD_FIXED_DRIVER, /* obsolete, will be removed */
|
||||
@@ -172,4 +173,5 @@ typedef struct {
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _DRIVERS_DRIVERS_H */
|
||||
|
||||
Reference in New Issue
Block a user