Current Path : /sys/amd64/compile/hs32/modules/usr/src/sys/modules/iwnfw/iwn6000/@/amd64/compile/hs32/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //sys/amd64/compile/hs32/modules/usr/src/sys/modules/iwnfw/iwn6000/@/amd64/compile/hs32/ata_if.h |
/* * This file is produced automatically. * Do not modify anything in here by hand. * * Created from source file * ../../../dev/ata/ata_if.m * with * makeobjops.awk * * See the source file for legal information */ #ifndef _ata_if_h_ #define _ata_if_h_ /** @brief Unique descriptor for the ATA_LOCKING() method */ extern struct kobjop_desc ata_locking_desc; /** @brief A function implementing the ATA_LOCKING() method */ typedef int ata_locking_t(device_t channel, int mode); static __inline int ATA_LOCKING(device_t channel, int mode) { kobjop_t _m; KOBJOPLOOKUP(((kobj_t)channel)->ops,ata_locking); return ((ata_locking_t *) _m)(channel, mode); } #define ATA_LF_LOCK 0x0001 #define ATA_LF_UNLOCK 0x0002 #define ATA_LF_WHICH 0x0004 /** @brief Unique descriptor for the ATA_SETMODE() method */ extern struct kobjop_desc ata_setmode_desc; /** @brief A function implementing the ATA_SETMODE() method */ typedef int ata_setmode_t(device_t dev, int target, int mode); static __inline int ATA_SETMODE(device_t dev, int target, int mode) { kobjop_t _m; KOBJOPLOOKUP(((kobj_t)dev)->ops,ata_setmode); return ((ata_setmode_t *) _m)(dev, target, mode); } /** @brief Unique descriptor for the ATA_GETREV() method */ extern struct kobjop_desc ata_getrev_desc; /** @brief A function implementing the ATA_GETREV() method */ typedef int ata_getrev_t(device_t dev, int target); static __inline int ATA_GETREV(device_t dev, int target) { kobjop_t _m; KOBJOPLOOKUP(((kobj_t)dev)->ops,ata_getrev); return ((ata_getrev_t *) _m)(dev, target); } /** @brief Unique descriptor for the ATA_RESET() method */ extern struct kobjop_desc ata_reset_desc; /** @brief A function implementing the ATA_RESET() method */ typedef void ata_reset_t(device_t channel); static __inline void ATA_RESET(device_t channel) { kobjop_t _m; KOBJOPLOOKUP(((kobj_t)channel)->ops,ata_reset); ((ata_reset_t *) _m)(channel); } /** @brief Unique descriptor for the ATA_REINIT() method */ extern struct kobjop_desc ata_reinit_desc; /** @brief A function implementing the ATA_REINIT() method */ typedef int ata_reinit_t(device_t dev); static __inline int ATA_REINIT(device_t dev) { kobjop_t _m; KOBJOPLOOKUP(((kobj_t)dev)->ops,ata_reinit); return ((ata_reinit_t *) _m)(dev); } #endif /* _ata_if_h_ */