搜尋此網誌

2011年10月22日 星期六

EFI Shell commands -- DRVCFG(行使一個驅動程式配置協定)

Invokes the Driver Configuration Protocol.

DRVCFG [-l XXX] [-c] [-f Type|-v|-s]
       [DriverHandle [DeviceHandle [ChildHandle]]]


    -l           - Configure using the specified language
    -c           - Configure all child devices
    -f           - Force defaults
    -v           - Validate options
    -s           - Set options
    Type         - The type of default configuration options to force on the
                   controller specified by ControllerHandle and ChildHandle:
                     0   - Safe Defaults.
                     1   - Manufacturing Defaults.
                     2   - Custom Defaults.
                     3   - Performance Defaults.
    DriverHandle - Handle of the driver to configure
    DeviceHandle - Handle of a device that DriverHandle is managing
    ChildHandle  - Handle of a device that is a child of DeviceHandle

Note:
   1. Default Type.
       0 - Safe Defaults. Places a controller in a safe configuration with
           the greatest probability of functioning correctly in a platform.
       1 - Manufacturing Defaults. Optional type that places the controller in
           a configuration suitable for a manufacturing and test environment.
       2 - Custom Defaults. Optional type that places the controller in a
           custom configuration.
       3 - Performance Defaults. Optional type that places the controller in a
           configuration that maximizes the controller's performance in a
           platform.
       Other Value - Depends on the driver's implementation.

Examples:
  * To display the list of devices available for configuration:
    Shell> drvcfg

  * To display the list of devices and child devices available for
    configuration:
    Shell> drvcfg -c

  * To force defaults on all devices:
    Shell> drvcfg -f 0

  * To force defaults on all devices managed by driver 0x17:
    Shell> drvcfg -f 0 17

  * To force defaults on device 0x28 which is managed by driver 0x17:
    Shell> drvcfg -f 0 17 28

  * To force defaults on all child devices of device 0x28 which is managed by
    driver 0x17:
    Shell> drvcfg -f 0 17 28 -c

  * To force defaults on child device 0x30 of device 0x28 which is managed by
    driver 0x17:
    Shell> drvcfg -f 0 17 28 30

  * To validate options on all devices:
    Shell> drvcfg -v

  * To validate options on all devices managed by driver 0x17:
    Shell> drvcfg -v 17

  * To validate options on device 0x28 which is managed by driver 0x17:
    Shell> drvcfg -v 17 28

  * To validate options on all child devices of device 0x28 which are managed
    by driver 0x17:
    Shell> drvcfg -v 17 28 -c

  * To validate options on child device 0x30 of device 0x28 which is managed
    by driver 0x17:
    Shell> drvcfg -v 17 28 30

  * To set options on device 0x28 which is managed by driver 0x17:
    Shell> drvcfg -s 17 28

  * To set options on child device 0x30 of device 0x28 which is managed by
    driver 0x17:
    Shell> drvcfg -s 17 28 30

  * To set options on device 0x28 which is managed by driver 0x17, in English:
    Shell> drvcfg -s 17 28 -l eng

  * To set options on device 0x28 which is managed by driver 0x17, in Spanish:
    Shell> drvcfg -s 17 28 -l spa

沒有留言:

張貼留言