linux/drivers/ata/pata_parport/frpw.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * (c) 1996-1998  Grant R. Guenther <[email protected]>
 *
 * frpw.c is a low-level protocol driver for the Freecom "Power" parallel port
 * IDE adapter.
 *
 * Some applications of this adapter may require a "printer" reset prior to
 * loading the driver.  This can be done by loading and unloading the "lp"
 * driver, or it can be done by this driver if you define FRPW_HARD_RESET.
 * The latter is not recommended as it may upset devices on other ports.
 */

#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/wait.h>
#include <asm/io.h>
#include "pata_parport.h"

#define cec4
#define j44(l,h)

/*
 * cont = 0 - access the IDE register file
 * cont = 1 - access the IDE command set
 */
static int  cont_map[2] =;

static int frpw_read_regr(struct pi_adapter *pi, int cont, int regr)
{}

static void frpw_write_regr(struct pi_adapter *pi, int cont, int regr, int val)
{}

static void frpw_read_block_int(struct pi_adapter *pi, char *buf, int count,
				int regr)
{}

static void frpw_read_block(struct pi_adapter *pi, char *buf, int count)
{}

static void frpw_write_block(struct pi_adapter *pi, char *buf, int count)
{}

static void frpw_connect(struct pi_adapter *pi)
{}

static void frpw_disconnect(struct pi_adapter *pi)
{}

/*
 * Stub logic to see if PNP string is available - used to distinguish
 * between the Xilinx and ASIC implementations of the Freecom adapter.
 * returns chip_type:   0 = Xilinx, 1 = ASIC
 */
static int frpw_test_pnp(struct pi_adapter *pi)
{}

/*
 * We use the pi->private to remember the result of the PNP test.
 * To make this work, private = port*2 + chip.  Yes, I know it's a hack :-(
 */
static int frpw_test_proto(struct pi_adapter *pi)
{}

static void frpw_log_adapter(struct pi_adapter *pi)

{}

static struct pi_protocol frpw =;

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
module_pata_parport_driver();