PKUOS - Pintos
Pintos source browser for PKU Operating System course
Data Fields
ata_disk Struct Reference

An ATA device. More...

Collaboration diagram for ata_disk:
Collaboration graph
[legend]

Data Fields

char name [8]
 Name, e.g. More...
 
struct channelchannel
 Channel that disk is attached to. More...
 
int dev_no
 Device 0 or 1 for master or slave. More...
 
bool is_ata
 Is device an ATA disk? More...
 

Detailed Description

An ATA device.

Definition at line 54 of file ide.c.

Field Documentation

◆ channel

struct channel* ata_disk::channel

Channel that disk is attached to.

Definition at line 57 of file ide.c.

Referenced by check_device_type(), ide_init(), ide_read(), ide_write(), identify_ata_device(), select_device(), select_sector(), wait_until_idle(), and wait_while_busy().

◆ dev_no

int ata_disk::dev_no

Device 0 or 1 for master or slave.

Definition at line 58 of file ide.c.

Referenced by check_device_type(), ide_init(), reset_channel(), select_device(), and select_sector().

◆ is_ata

bool ata_disk::is_ata

Is device an ATA disk?

Definition at line 59 of file ide.c.

Referenced by check_device_type(), ide_init(), and identify_ata_device().

◆ name

char ata_disk::name[8]

Name, e.g.

"hda".

Definition at line 56 of file ide.c.

Referenced by ide_init(), ide_read(), ide_write(), identify_ata_device(), wait_until_idle(), and wait_while_busy().


The documentation for this struct was generated from the following file: