Changes between Version 5 and Version 6 of NewDriver


Ignore:
Timestamp:
Dec 22, 2009, 3:49:39 PM (14 years ago)
Author:
Nicolas Pouillon
Comment:

hexo->device

Legend:

Unmodified
Added
Removed
Modified
  • NewDriver

    v5 v6  
    4646
    4747Interface function prototypes are defined in two headers:
    48  * `hexo/device.h` defines the class-agnostic functions: init, cleanup and irq,
     48 * `device/device.h` defines the class-agnostic functions: init, cleanup and irq,
    4949 * `device/`''class''`.h` defines the class-specific functions. for character devices, there is only a `request` function to implement.
    5050
     
    5555
    5656#include <device/char.h>
    57 #include <hexo/device.h>
     57#include <device/device.h>
    5858
    5959/* The device constructor & destructor */
     
    110110#include <device/icu.h>
    111111#include <hexo/types.h>
    112 #include <hexo/device.h>
     112#include <device/device.h>
    113113#include <device/driver.h>
    114114#include <hexo/iospace.h>