mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 07:24:37 +00:00
Updated driver API
This commit is contained in:
parent
917e000f6c
commit
e166338295
18
DAPI.hpp
18
DAPI.hpp
@ -68,6 +68,16 @@ struct KernelAPI
|
|||||||
void (*SendPacket)(unsigned int DriverID, unsigned char *Data, unsigned short Size);
|
void (*SendPacket)(unsigned int DriverID, unsigned char *Data, unsigned short Size);
|
||||||
void (*ReceivePacket)(unsigned int DriverID, unsigned char *Data, unsigned short Size);
|
void (*ReceivePacket)(unsigned int DriverID, unsigned char *Data, unsigned short Size);
|
||||||
} Network;
|
} Network;
|
||||||
|
|
||||||
|
/** @brief Connects to the disk manager */
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
void (*ReadSector)(unsigned int DriverID, unsigned long Sector, unsigned char *Data, unsigned int SectorCount, unsigned char Port);
|
||||||
|
void (*WriteSector)(unsigned int DriverID, unsigned long Sector, unsigned char *Data, unsigned int SectorCount, unsigned char Port);
|
||||||
|
} AHCI;
|
||||||
|
} Disk;
|
||||||
} Commmand;
|
} Commmand;
|
||||||
|
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
@ -98,6 +108,14 @@ struct KernelCallback
|
|||||||
unsigned long Length;
|
unsigned long Length;
|
||||||
} NetworkCallback;
|
} NetworkCallback;
|
||||||
|
|
||||||
|
/** @brief When the kernel wants to write to disk. */
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
unsigned long Sector;
|
||||||
|
unsigned long SectorCount;
|
||||||
|
unsigned char Port;
|
||||||
|
unsigned char *Data;
|
||||||
|
} DiskCallback;
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
#endif // !__FENNIX_DRIVER_API_H__
|
#endif // !__FENNIX_DRIVER_API_H__
|
||||||
|
4
Fex.hpp
4
Fex.hpp
@ -79,8 +79,8 @@ struct FexExtended
|
|||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
unsigned short VendorID;
|
unsigned short VendorID[16];
|
||||||
unsigned short DeviceID;
|
unsigned short DeviceID[16];
|
||||||
unsigned short Class;
|
unsigned short Class;
|
||||||
unsigned short SubClass;
|
unsigned short SubClass;
|
||||||
unsigned short ProgIF;
|
unsigned short ProgIF;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user