diff --git a/src/gopheros/device/driver.go b/src/gopheros/device/driver.go new file mode 100644 index 0000000..11cab21 --- /dev/null +++ b/src/gopheros/device/driver.go @@ -0,0 +1,15 @@ +package device + +import "gopheros/kernel" + +// Driver is an interface implemented by all drivers. +type Driver interface { + // DriverName returns the name of the driver. + DriverName() string + + // DriverVersion returns the driver version. + DriverVersion() (major uint16, minor uint16, patch uint16) + + // DriverInit initializes the device driver. + DriverInit() *kernel.Error +}