⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basic_prot.h

📁 newos is new operation system
💻 H
字号:
/*** Copyright 2002, Thomas Kurschel. All rights reserved.** Distributed under the terms of the NewOS License.*/#ifndef __BASIC_PROT_H__#define __BASIC_PROT_H__bool ide_wait( ide_device_info *device, int mask, int not_mask,	bool check_err, bigtime_t timeout );bool wait_for_drq( ide_device_info *device );bool wait_for_drqdown( ide_device_info *device );bool wait_for_drdy( ide_device_info *device );bool send_command( ide_device_info *device,	bool need_drdy, bigtime_t timeout, ide_bus_state new_state );bool device_start_service( ide_device_info *device, int *tag );bool reset_bus( ide_device_info *device );bool check_service_req( ide_device_info *device );static inline ide_device_info *get_current_device( ide_bus_info *bus ){	ide_task_file tf;	bus->controller->read_command_block_regs( bus->channel, &tf,		ide_mask_device_head );	return bus->devices[tf.lba.device];}static inline int device_released_bus( ide_device_info *device ){	ide_bus_info *bus = device->bus;	bus->controller->read_command_block_regs(		bus->channel, &device->tf, ide_mask_sector_count );	return device->tf.queued.release;}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -