UbixOS  2.0
hd.c File Reference
#include <pci/hd.h>
#include <sys/io.h>
#include <sys/device.h>
#include <lib/kmalloc.h>
#include <lib/kprintf.h>
#include <devfs/devfs.h>
#include <string.h>
#include <fs/common/gpt.h>
Include dependency graph for hd.c:

Go to the source code of this file.

Functions

int _initHardDisk (int hdD)
 
int hdInit (struct device_node *dev)
 
int hdIoctl ()
 
int hdRead (struct driveInfo *hdd, void *baseAddr, uInt32 startSector, uInt32 sectorCount)
 
int hdReset ()
 
int hdStandby ()
 
int hdStart ()
 
int hdStop ()
 
int hdWrite (struct driveInfo *hdd, void *baseAddr, uInt32 startSector, uInt32 sectorCount)
 
int initHardDisk ()
 

Function Documentation

◆ _initHardDisk()

int _initHardDisk ( int  hdD)

Definition at line 47 of file hd.c.

References name.

Referenced by initHardDisk().

◆ hdInit()

◆ hdIoctl()

int hdIoctl ( )

Definition at line 211 of file hd.c.

◆ hdRead()

int hdRead ( struct driveInfo hdd,
void *  baseAddr,
uInt32  startSector,
uInt32  sectorCount 
)

◆ hdReset()

int hdReset ( )

Definition at line 216 of file hd.c.

◆ hdStandby()

int hdStandby ( )

Definition at line 196 of file hd.c.

◆ hdStart()

int hdStart ( )

Definition at line 201 of file hd.c.

◆ hdStop()

int hdStop ( )

Definition at line 206 of file hd.c.

◆ hdWrite()

int hdWrite ( struct driveInfo hdd,
void *  baseAddr,
uInt32  startSector,
uInt32  sectorCount 
)

◆ initHardDisk()

int initHardDisk ( )

Definition at line 42 of file hd.c.

References _initHardDisk().

Here is the call graph for this function: