rebase on mainstream version step 2.6.7
This commit is contained in:
parent
7f8ddecb5f
commit
6c3708a1fa
|
@ -412,30 +412,6 @@ Description of the Interface between Linklevel and Hardwarelevel
|
|||
Returnvalue:
|
||||
current protocol-Id (one of the constants ISDN_L3_PROTO)
|
||||
|
||||
ISDN_CMD_LOCK:
|
||||
|
||||
With this command the HL-driver is told, that it will be used by the
|
||||
LL and therefore may not be unloaded. The HL-driver should use
|
||||
MOD_INC_USE_COUNT to tell that to the kernel.
|
||||
|
||||
Parameter:
|
||||
driver = driver-Id.
|
||||
command = ISDN_CMD_LOCK
|
||||
arg = unused.
|
||||
parm = unused.
|
||||
|
||||
ISDN_CMD_UNLOCK:
|
||||
|
||||
With this command the HL-driver is told, that it is no more used by the
|
||||
LL and therefore may be unloaded. The HL-driver should use
|
||||
DEC_INC_USE_COUNT to tell that to the kernel.
|
||||
|
||||
Parameter:
|
||||
driver = driver-Id.
|
||||
command = ISDN_CMD_UNLOCK
|
||||
arg = unused.
|
||||
parm = unused.
|
||||
|
||||
ISDN_CMD_PROCEED:
|
||||
|
||||
With this command, the HL-driver is told to proceed with a incoming call.
|
||||
|
|
|
@ -505,12 +505,12 @@ static int avmcs_event(event_t event, int priority,
|
|||
} /* avmcs_event */
|
||||
|
||||
static struct pcmcia_driver avmcs_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.drv = {
|
||||
.name = "avmcs_cs",
|
||||
.owner = THIS_MODULE,
|
||||
.drv = {
|
||||
.name = "avm_cs",
|
||||
},
|
||||
.attach = avmcs_attach,
|
||||
.detach = avmcs_detach,
|
||||
.attach = avmcs_attach,
|
||||
.detach = avmcs_detach,
|
||||
};
|
||||
|
||||
static int __init avmcs_init(void)
|
||||
|
|
|
@ -104,9 +104,12 @@ reset_netjet_s(struct IsdnCardState *cs)
|
|||
cs->hw.njet.ctrl_reg = 0xff; /* Reset On */
|
||||
byteout(cs->hw.njet.base + NETJET_CTRL, cs->hw.njet.ctrl_reg);
|
||||
mdelay(10);
|
||||
cs->hw.njet.ctrl_reg = 0x00; /* Reset Off and status read clear */
|
||||
/* now edge triggered for TJ320 GE 13/07/00 */
|
||||
/* see comment in IRQ function */
|
||||
if (cs->subtyp) /* TJ320 */
|
||||
cs->hw.njet.ctrl_reg = 0x40; /* Reset Off and status read clear */
|
||||
else
|
||||
cs->hw.njet.ctrl_reg = 0x00; /* Reset Off and status read clear */
|
||||
byteout(cs->hw.njet.base + NETJET_CTRL, cs->hw.njet.ctrl_reg);
|
||||
mdelay(10);
|
||||
cs->hw.njet.auxd = 0;
|
||||
|
@ -151,7 +154,7 @@ static struct pci_dev *dev_netjet __initdata = NULL;
|
|||
int __init
|
||||
setup_netjet_s(struct IsdnCard *card)
|
||||
{
|
||||
int bytecnt;
|
||||
int bytecnt,cfg;
|
||||
struct IsdnCardState *cs = card->cs;
|
||||
char tmp[64];
|
||||
|
||||
|
@ -183,6 +186,15 @@ setup_netjet_s(struct IsdnCard *card)
|
|||
printk(KERN_WARNING "NETjet-S: No IO-Adr for PCI card found\n");
|
||||
return(0);
|
||||
}
|
||||
/* the TJ300 and TJ320 must be detected, the IRQ handling is different
|
||||
* unfortunatly the chips use the same device ID, but the TJ320 has
|
||||
* the bit20 in status PCI cfg register set
|
||||
*/
|
||||
pci_read_config_dword(dev_netjet, 0x04, &cfg);
|
||||
if (cfg & 0x00100000)
|
||||
cs->subtyp = 1; /* TJ320 */
|
||||
else
|
||||
cs->subtyp = 0; /* TJ300 */
|
||||
/* 2001/10/04 Christoph Ersfeld, Formula-n Europe AG www.formula-n.com */
|
||||
if ((dev_netjet->subsystem_vendor == 0x55) &&
|
||||
(dev_netjet->subsystem_device == 0x02)) {
|
||||
|
@ -240,8 +252,8 @@ setup_netjet_s(struct IsdnCard *card)
|
|||
bytecnt = 256;
|
||||
|
||||
printk(KERN_INFO
|
||||
"NETjet-S: PCI card configured at %#lx IRQ %d\n",
|
||||
cs->hw.njet.base, cs->irq);
|
||||
"NETjet-S: %s card configured at %#lx IRQ %d\n",
|
||||
cs->subtyp ? "TJ320" : "TJ300", cs->hw.njet.base, cs->irq);
|
||||
if (!request_region(cs->hw.njet.base, bytecnt, "netjet-s isdn")) {
|
||||
printk(KERN_WARNING
|
||||
"HiSax: %s config port %#lx-%#lx already in use\n",
|
||||
|
|
|
@ -257,13 +257,18 @@ static void st5481B_mode(struct st5481_bcs *bcs, int mode)
|
|||
static int st5481_setup_b_out(struct st5481_bcs *bcs)
|
||||
{
|
||||
struct usb_device *dev = bcs->adapter->usb_dev;
|
||||
struct usb_host_interface *altsetting;
|
||||
struct usb_interface *intf;
|
||||
struct usb_host_interface *altsetting = NULL;
|
||||
struct usb_host_endpoint *endpoint;
|
||||
struct st5481_b_out *b_out = &bcs->b_out;
|
||||
|
||||
DBG(4,"");
|
||||
|
||||
altsetting = &(dev->config->interface[0]->altsetting[3]);
|
||||
intf = usb_ifnum_to_if(dev, 0);
|
||||
if (intf)
|
||||
altsetting = usb_altnum_to_altsetting(intf, 3);
|
||||
if (!altsetting)
|
||||
return -ENXIO;
|
||||
|
||||
// Allocate URBs and buffers for the B channel out
|
||||
endpoint = &altsetting->endpoint[EP_B1_OUT - 1 + bcs->channel * 2];
|
||||
|
|
|
@ -652,13 +652,18 @@ static void ph_disconnect(struct st5481_adapter *adapter)
|
|||
static int st5481_setup_d_out(struct st5481_adapter *adapter)
|
||||
{
|
||||
struct usb_device *dev = adapter->usb_dev;
|
||||
struct usb_host_interface *altsetting;
|
||||
struct usb_interface *intf;
|
||||
struct usb_host_interface *altsetting = NULL;
|
||||
struct usb_host_endpoint *endpoint;
|
||||
struct st5481_d_out *d_out = &adapter->d_out;
|
||||
|
||||
DBG(2,"");
|
||||
|
||||
altsetting = &(dev->config->interface[0]->altsetting[3]);
|
||||
intf = usb_ifnum_to_if(dev, 0);
|
||||
if (intf)
|
||||
altsetting = usb_altnum_to_altsetting(intf, 3);
|
||||
if (!altsetting)
|
||||
return -ENXIO;
|
||||
|
||||
// Allocate URBs and buffers for the D channel out
|
||||
endpoint = &altsetting->endpoint[EP_D_OUT-1];
|
||||
|
|
|
@ -244,7 +244,8 @@ int st5481_setup_usb(struct st5481_adapter *adapter)
|
|||
struct usb_device *dev = adapter->usb_dev;
|
||||
struct st5481_ctrl *ctrl = &adapter->ctrl;
|
||||
struct st5481_intr *intr = &adapter->intr;
|
||||
struct usb_host_interface *altsetting;
|
||||
struct usb_interface *intf;
|
||||
struct usb_host_interface *altsetting = NULL;
|
||||
struct usb_host_endpoint *endpoint;
|
||||
int status;
|
||||
struct urb *urb;
|
||||
|
@ -257,8 +258,11 @@ int st5481_setup_usb(struct st5481_adapter *adapter)
|
|||
return status;
|
||||
}
|
||||
|
||||
|
||||
altsetting = &(dev->config->interface[0]->altsetting[3]);
|
||||
intf = usb_ifnum_to_if(dev, 0);
|
||||
if (intf)
|
||||
altsetting = usb_altnum_to_altsetting(intf, 3);
|
||||
if (!altsetting)
|
||||
return -ENXIO;
|
||||
|
||||
// Check if the config is sane
|
||||
if ( altsetting->desc.bNumEndpoints != 7 ) {
|
||||
|
|
|
@ -386,7 +386,7 @@ isdn_all_eaz(int di, int ch)
|
|||
* Begin of a CAPI like LL<->HL interface, currently used only for
|
||||
* supplementary service (CAPI 2.0 part III)
|
||||
*/
|
||||
#include <linux/isdn//capicmd.h>
|
||||
#include <linux/isdn/capicmd.h>
|
||||
|
||||
int
|
||||
isdn_capi_rec_hl_msg(capi_msg *cm) {
|
||||
|
|
Loading…
Reference in New Issue