#ifndef __SPINDOWN_H__
#define __SPINDOWN_H__
#include <libkern/OSTypes.h>
#include <IOKit/storage/ata/IOATAStorageDefines.h>
#include <stdio.h>
#include <time.h>
struct IOATAPowerStates
{
IOATAPowerState driverDesire;
IOATAPowerState deviceDesire;
IOATAPowerState userDesire;
};
typedef struct IOATAPowerStates IOATAPowerStates;
struct DiskDevice
{
time_t timestamp;
char * name;
char * location;
char * interconnect;
IOATAPowerStates powerStates;
};
typedef struct DiskDevice DiskDevice;
IOATAPowerState PowerStatesMax( IOATAPowerStates * powerStates );
char * PowerStateString( IOATAPowerState x, int opt_summary );
int sprintf_timestamp( char * str, time_t t );
int sprintf_timestamp_now( char * str );
char * timestampStr_static( time_t t );
#if 0
int sprintf_interval( char * str, time_t interval );
char * intervalStr_static( time_t interval );
#endif
int GetATADeviceInfoWithRetry( DiskDevice * diskDevice );
#endif