<commit_before>/**
 * @file
 * @brief
 *
 * @date 26.10.2012
 * @author <NAME>
 */

#include <asm/io.h>
#include <types.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <fs/fat.h>
#include <drivers/ide.h>
#include <embox/block_dev.h>
#include <mem/phymem.h>
#include <util/indexator.h>

#define MAX_DEV_QUANTITY OPTION_GET(NUMBER,dev_quantity)
INDEX_DEF(idecd_idx,0,MAX_DEV_QUANTITY);

static int atapi_packet_read(hd_t *hd, unsigned char *pkt,
		                     int pktlen, char *buffer, size_t bufsize) {
	hdc_t *hdc;
	int result;
	char *bufp;
	int bufleft;
	unsigned short bytes;

	hdc = hd->hdc;
	bufp = (char *) buffer;
	bufleft = bufsize;
	hdc->dir = HD_XFER_IGNORE;
	hdc->active = hd;
	hdc->result = 0;

	/* Setup registers */
	outb(0, hdc->iobase + HDC_FEATURE);<commit_msg>Add block_dev_namer for automatic numbering of device names<commit_after>/**
 * @file
 * @brief
 *
 * @date 26.10.2012
 * @author <NAME>
 */

#include <asm/io.h>
#include <types.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>

#include <arpa/inet.h>
#include <fs/fat.h>
#include <drivers/ide.h>
#include <embox/block_dev.h>
#include <mem/phymem.h>
#include <util/indexator.h>

#define MAX_DEV_QUANTITY OPTION_GET(NUMBER,dev_quantity)
INDEX_DEF(idecd_idx,0,MAX_DEV_QUANTITY);

static int atapi_packet_read(hd_t *hd, unsigned char *pkt,
		                     int pktlen, char *buffer, size_t bufsize) {
	hdc_t *hdc;
	int result;
	char *bufp;
	int bufleft;
	unsigned short bytes;

	hdc = hd->hdc;
	bufp = (char *) buffer;
	bufleft = bufsize;
	hdc->dir = HD_XFER_IGNORE;
	hdc->active = hd;
	hdc->result = 0;

	/* Setup registers */
	outb(0, hdc->iobase + HDC_FEATURE);
{'fraction_non_alphanumeric': 0.1542957334891876, 'fraction_numerical': 0.012857977790765635, 'mean_word_length': 3.991253644314869, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2724266', 'n_tokens_mistral': 751, 'n_tokens_neox': 722, 'n_words': 156}