![]() |
Max OS 0.3
|
base class for all drivers, handles the activation, deactivation, initialisation and reset of the driver as well as error messages and identifying the device More...
#include <driver.h>
Public Member Functions | |
| virtual void | activate () |
| Activate the driver. | |
| virtual void | deactivate () |
| Deactivate the driver. | |
| virtual void | initialise () |
| Initialise the driver. | |
| virtual uint32_t | reset () |
| Reset the driver. | |
| virtual string | vendor_name () |
| Get who created the device. | |
| virtual string | device_name () |
| Get the device name of the driver. | |
base class for all drivers, handles the activation, deactivation, initialisation and reset of the driver as well as error messages and identifying the device
|
virtual |
Activate the driver.
Reimplemented in MaxOS::drivers::disk::IntegratedDriveElectronicsController, MaxOS::drivers::ethernet::AMD_AM79C973, MaxOS::drivers::ethernet::IntelI217, MaxOS::drivers::peripherals::KeyboardDriver, MaxOS::drivers::peripherals::MouseDriver, MaxOS::drivers::clock::Clock, and MaxOS::drivers::disk::Disk.
Definition at line 25 of file driver.cpp.
Referenced by MaxOS::drivers::disk::Disk::activate().
|
virtual |
Deactivate the driver.
Reimplemented in MaxOS::drivers::ethernet::AMD_AM79C973, and MaxOS::drivers::ethernet::IntelI217.
Definition at line 32 of file driver.cpp.
Referenced by MaxOS::drivers::ethernet::IntelI217::deactivate().
|
virtual |
Get the device name of the driver.
Reimplemented in MaxOS::drivers::clock::Clock, MaxOS::drivers::disk::AdvancedTechnologyAttachment, MaxOS::drivers::disk::IntegratedDriveElectronicsController, MaxOS::drivers::ethernet::AMD_AM79C973, MaxOS::drivers::ethernet::IntelI217, MaxOS::drivers::peripherals::KeyboardDriver, MaxOS::drivers::peripherals::MouseDriver, MaxOS::drivers::video::VideoElectronicsStandardsAssociation, MaxOS::drivers::video::VideoGraphicsArray, and MaxOS::drivers::disk::Disk.
Definition at line 66 of file driver.cpp.
|
virtual |
Initialise the driver.
Reimplemented in MaxOS::drivers::disk::IntegratedDriveElectronicsController.
Definition at line 39 of file driver.cpp.
|
virtual |
Reset the driver.
Reimplemented in MaxOS::drivers::ethernet::AMD_AM79C973, and MaxOS::drivers::ethernet::IntelI217.
Definition at line 48 of file driver.cpp.
Referenced by MaxOS::drivers::ethernet::IntelI217::reset().
|
virtual |
Get who created the device.
Reimplemented in MaxOS::drivers::clock::Clock, MaxOS::drivers::disk::AdvancedTechnologyAttachment, MaxOS::drivers::disk::IntegratedDriveElectronicsController, MaxOS::drivers::ethernet::AMD_AM79C973, MaxOS::drivers::ethernet::IntelI217, MaxOS::drivers::video::VideoElectronicsStandardsAssociation, MaxOS::drivers::video::VideoGraphicsArray, and MaxOS::drivers::disk::Disk.
Definition at line 57 of file driver.cpp.