Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::drivers::Driver Class Reference

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>

Inheritance diagram for MaxOS::drivers::Driver:
MaxOS::drivers::SerialConsole MaxOS::drivers::clock::Clock MaxOS::drivers::console::TextModeConsole MaxOS::drivers::console::VESABootConsole MaxOS::drivers::disk::Disk MaxOS::drivers::disk::IntegratedDriveElectronicsController MaxOS::drivers::ethernet::EthernetDriver MaxOS::drivers::peripherals::KeyboardDriver MaxOS::drivers::peripherals::MouseDriver MaxOS::drivers::video::VideoDriver

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.
 

Detailed Description

base class for all drivers, handles the activation, deactivation, initialisation and reset of the driver as well as error messages and identifying the device

Definition at line 27 of file driver.h.

Member Function Documentation

◆ activate()

◆ deactivate()

void Driver::deactivate ( )
virtual

Deactivate the driver.

Reimplemented in MaxOS::drivers::ethernet::AMD_AM79C973, and MaxOS::drivers::ethernet::IntelI217.

Definition at line 32 of file driver.cpp.

32 {
33
34}

Referenced by MaxOS::drivers::ethernet::IntelI217::deactivate().

◆ device_name()

◆ initialise()

void Driver::initialise ( )
virtual

Initialise the driver.

Reimplemented in MaxOS::drivers::disk::IntegratedDriveElectronicsController.

Definition at line 39 of file driver.cpp.

39 {
40
41}

◆ reset()

uint32_t Driver::reset ( )
virtual

Reset the driver.

Returns
How long in milliseconds it took to reset the driver

Reimplemented in MaxOS::drivers::ethernet::AMD_AM79C973, and MaxOS::drivers::ethernet::IntelI217.

Definition at line 48 of file driver.cpp.

48 {
49 return 0;
50}

Referenced by MaxOS::drivers::ethernet::IntelI217::reset().

◆ vendor_name()


The documentation for this class was generated from the following files: