OpenCBM
releasebus.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version
5  * 2 of the License, or (at your option) any later version.
6  *
7  * Copyright 1999-2004 Michael Klein <michael(dot)klein(at)puffin(dot)lb(dot)shuttle(dot)de>
8  * Copyright 2001-2004 Spiro Trikaliotis
9  *
10  */
11 
22 #include <wdm.h>
23 #include "cbm_driver.h"
24 #include "i_iec.h"
25 
37 VOID
38 cbmiec_release_bus(IN PDEVICE_EXTENSION Pdx)
39 {
40  FUNC_ENTER();
41 
42  if (NT_SUCCESS(cbmiec_checkcable(Pdx)))
43  {
45  }
46 
47  FUNC_LEAVE();
48 }
#define PP_ATN_OUT
The ATN OUT bit.
Definition: i_iec.h:39
#define PP_DATA_OUT
The DATA OUT bit.
Definition: i_iec.h:41
#define PP_RESET_OUT
The RESET OUT bit.
Definition: i_iec.h:42
#define FUNC_LEAVE()
Definition: debug.h:349
Internal functions and definitions of the libiec library.
#define CBMIEC_RELEASE(_rel)
Definition: i_iec.h:66
#define PP_CLK_OUT
The CLOCK OUT bit.
Definition: i_iec.h:40
#define FUNC_ENTER()
Definition: debug.h:347
NTSTATUS cbmiec_checkcable(PDEVICE_EXTENSION Pdx)
Determine the type of cable (XA1541/XM1541) on the IEC bus.
Definition: checkcable.c:334
Definitions for the opencbm driver.
VOID cbmiec_release_bus(IN PDEVICE_EXTENSION Pdx)
Release the IEC bus.
Definition: releasebus.c:38