亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? interrup.c

?? 虛擬網(wǎng)絡驅動程序ndis for 數(shù)字電視 ip 數(shù)據(jù)接收
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*++

Copyright (c) 1999 SDMC Co., Ltd.

Module Name:

    interrup.c
    rtsnt.c

Abstract:

    This is the main file for the DVB-S fast modem NIC.
    This driver conforms to the NDIS 5.0 miniport interface.

    The overall structure and much of the code is taken from
    the NE2000 driver included in Microsoft NT3.5 DDK.


Environment:

    Kernel Mode - Or whatever is the equivalent on OS/2 and DOS.

Revision History:

    12/11/96 ----- Vincent

--*/

#include <ndis.h>
#include "RTSNT_SW.H"
#include "bit.h"
//#include "descramble.h"
//
// On debug builds tell the compiler to keep the symbols for
// internal functions, otw throw them out.
//
#if DBG
#define STATIC
#else
#define STATIC static
#endif

#define RESET_BADDATA_NUM    32

/*++

Routine Description:

    This routine is used to turn on the interrupt mask.

Arguments:

    Context - The adapter for the RTL8139 to start.

Return Value:

    None.

--*/

VOID
RTFast_EnableInterrupt(
    IN NDIS_HANDLE MiniportAdapterContext
    )
{
}



/*++

Routine Description:

    This routine is used to turn off the interrupt mask.

Arguments:

    Context - The adapter for the RTL8139 to start.

Return Value:

    None.

--*/

VOID
RTFast_DisableInterrupt(
    IN NDIS_HANDLE MiniportAdapterContext
    )
{
}


VOID
RTFast_Isr(
    OUT PBOOLEAN InterruptRecognized,
    OUT PBOOLEAN QueueDpc,
    IN PVOID Context
    )
{
    PRTFAST_ADAPTER Adapter = ((PRTFAST_ADAPTER)Context);
    UCHAR TmpStatus, TmpMask;

#if DBG
    //DbgPrint("<<<<--- Enter RTFast Isr !\n");
#endif

	*InterruptRecognized = FALSE;
    *QueueDpc = FALSE;

    return;
}
/*++

Routine Description:

    This is the defered processing routine for interrupts.  It
    reads from the Interrupt Status Register any outstanding
    interrupts and handles them.

Arguments:

    MiniportAdapterContext - a handle to the adapter block.

Return Value:

    NONE.

--*/
VOID
RTFast_HandleInterrupt(
    IN NDIS_HANDLE MiniportAdapterContext
    )
{
    PRTFAST_ADAPTER     Adapter = ((PRTFAST_ADAPTER)MiniportAdapterContext);
    UCHAR               TmpStatus;//, imr_rxovw;
    BOOLEAN             DidSomething = TRUE;

#if DBG
    DbgPrint(" >>"); //"\n-->> Enter RTFast HandleInterrupt !\n");
#endif

	return;
}

#define MINDMABUFDATA  564           // 3*188
#define ONCE_DATASIZE  376
//#define MINDMABUFDATA  376           // 2*188
//#define ONCE_DATASIZE  376


/*++

Routine Description:

    This is the real interrupt handler for receive/overflow interrupt.

    Called when a receive interrupt is received. It first indicates
    all packets on the card and finally indicates ReceiveComplete().

Arguments:

    Adapter - Pointer to the adapter block.

Return Value:

    TRUE if done with all receives, else FALSE.

--*/

BOOLEAN
RTFast_RcvDpc(
    IN PRTFAST_ADAPTER Adapter
    )
{
    return (TRUE);              //Done
}

/*++
				
Routine Description:
				  
    Reads a packet off the card -- checking if the CRC is good.  This is
    a workaround for a bug where bytes in the data portion of the packet
    are shifted either left or right by two in some weird 8390 cases.
					
	This routine is a combination of Rtl8139TransferData (to copy up data
    from the card), CardCalculateCrc and CardCalculatePacketCrc.
					  
Arguments:
						
    Adapter - pointer to the adapter block.

    Return Value:

    TRUE if the packet seems ok, else false.

--*/


/*++

Routine Description:

    Indicates the first packet on the card to the protocols.

NOTE: For MP, non-x86 architectures, this assumes that the packet has been
    read from the card and into Adapter->PacketHeader and Adapter->Lookahead.

NOTE: For UP x86 systems this assumes that the packet header has been
    read into Adapter->PacketHeader and the minimal lookahead stored in
    Adapter->Lookahead

Arguments:

    Adapter - pointer to the adapter block.

Return Value:

    CARD_BAD if the card should be reset;
    INDICATE_OK otherwise.

--*/
										
/*++

Routine Description:

    A protocol calls the Rtl8139TransferData request (indirectly via
    NdisTransferData) from within its Receive event handler
    to instruct the driver to copy the contents of the received packet
    a specified packet buffer.

Arguments:

    MiniportAdapterContext - Context registered with the wrapper, really
        a pointer to the adapter.

    MiniportReceiveContext - The context value passed by the driver on its call
    to NdisMEthIndicateReceive.  The driver can use this value to determine
    which packet, on which adapter, is being received.

    ByteOffset - An unsigned integer specifying the offset within the
    received packet at which the copy is to begin.  If the entire packet
    is to be copied, ByteOffset must be zero.

    BytesToTransfer - An unsigned integer specifying the number of bytes
    to copy.  It is legal to transfer zero bytes; this has no effect.  If
    the sum of ByteOffset and BytesToTransfer is greater than the size
    of the received packet, then the remainder of the packet (starting from
    ByteOffset) is transferred, and the trailing portion of the receive
    buffer is not modified.

    Packet - A pointer to a descriptor for the packet storage into which
    the MAC is to copy the received packet.

    BytesTransfered - A pointer to an unsigned integer.  The MAC writes
    the actual number of bytes transferred into this location.  This value
    is not valid if the return status is STATUS_PENDING.

Notes:

  - The MacReceiveContext will be a pointer to the open block for
    the packet.

--*/
NDIS_STATUS
RTFast_TransferData(
    OUT PNDIS_PACKET Packet,
    OUT PUINT BytesTransferred,
    IN NDIS_HANDLE MiniportAdapterContext,
    IN NDIS_HANDLE MiniportReceiveContext,
    IN UINT ByteOffset,
    IN UINT BytesToTransfer
    )
{
    //
    // Variables for the number of bytes to copy, how much can be
    // copied at this moment, and the total number of bytes to copy.
    //
    UINT BytesLeft, BytesNow, BytesWanted;

    //
    // Current NDIS_BUFFER to copy into
    //
    PNDIS_BUFFER CurBuffer;

    //
    // Virtual address of the buffer.
    //
    PUCHAR BufStart;
    PUCHAR XferPageStart;

    //
    // Length and offset into the buffer.
    //
    UINT BufLen, BufOff;

    //
    // The adapter to transfer from.
    //
    PRTFAST_ADAPTER Adapter = (PRTFAST_ADAPTER)MiniportReceiveContext;
    MPE_DECODER *CurMPEdec = Adapter->CurMPEdec;

    //
    // Add the packet header onto the offset.
    //
    XferPageStart = (UCHAR *)CurMPEdec->IPbuf;
    XferPageStart += ByteOffset;

    //
    // See how much data there is to transfer.
    //
    if(ByteOffset+BytesToTransfer > CurMPEdec->IPPacketLen)
    {
        if((CurMPEdec->IPPacketLen) < ByteOffset)
        {
            *BytesTransferred = 0;

            return(NDIS_STATUS_FAILURE);
        }
        BytesWanted = CurMPEdec->IPPacketLen - ByteOffset;
    }
    else
    {
        BytesWanted = BytesToTransfer;
    }

    //
    // Set the number of bytes left to transfer
    //
    NdisDprAcquireSpinLock(&Adapter->RTFAST_SpinLock);
    BytesLeft = BytesWanted;

    {
        //
        // Address on the adapter to copy from
        //
        PUCHAR CurCardLoc;
        //
        // Copy data from the card -- it is not completely stored in the
        // adapter structure.
        //
        // Determine where the copying should start.
        //
        CurCardLoc = XferPageStart;

        //
        // Get location to copy into
        //
        NdisQueryPacket(Packet, NULL, NULL, &CurBuffer, NULL);

        NdisQueryBuffer(CurBuffer, (PVOID *)&BufStart, &BufLen);
        BufOff = 0;
        // Loop, filling each buffer in the packet until there
        // are no more buffers or the data has all been copied.
        while (BytesLeft > 0)
        {
            // See how much data to read into this buffer.
            if((BufLen-BufOff) > BytesLeft)
            {
                BytesNow = BytesLeft;
            }
            else
            {
                BytesNow = (BufLen - BufOff);
            }
            // Copy up the data.
            NdisMoveMemory(BufStart+BufOff, CurCardLoc, BytesNow);
            // Update offsets and counts
            CurCardLoc += BytesNow;
            BytesLeft -= BytesNow;
            // Is the transfer done now?
            if(BytesLeft == 0)
            {
                break;
            }
            // Was the end of this packet buffer reached?
            BufOff += BytesNow;
            if(BufOff == BufLen)
            {
                NdisGetNextBuffer(CurBuffer, &CurBuffer);
                if(CurBuffer == (PNDIS_BUFFER)NULL)
                {
                    break;
                }
                NdisQueryBuffer(CurBuffer, (PVOID *)&BufStart, &BufLen);
                BufOff = 0;
            }
        }

        NdisDprReleaseSpinLock(&Adapter->RTFAST_SpinLock);

        *BytesTransferred = BytesWanted - BytesLeft;

        return(NDIS_STATUS_SUCCESS);
    }
}


void DecodeIP(IN PRTFAST_ADAPTER Adapter,IN PUCHAR TsBuf)
{
    PLIST_ENTRY thisEntry; //, listHead;
    MPE_DECODER *CurMPEdec;
    USHORT wPID = 0x1FFF & ((TsBuf[1]<<8)|TsBuf[2]);
    UCHAR  ii = 0;

    NdisDprAcquireSpinLock(&Adapter->MPEdecSpinLock);
    while(thisEntry = NdisInterlockedRemoveHeadList(
                        &Adapter->ListMPEdec,
                        &Adapter->MPEListSpinLock
                        ))
    {
        CurMPEdec = CONTAINING_RECORD(thisEntry,
                                MPE_DECODER,
                                ListEntry);

        if(CurMPEdec->wPID == wPID)
        {
            ToMPESection(Adapter, CurMPEdec, TsBuf);
            NdisInterlockedInsertHeadList(
                    &Adapter->ListMPEdec,
                    thisEntry,
                    &Adapter->MPEListSpinLock
                    );
            break;
        }
        else
            NdisInterlockedInsertTailList(
                    &Adapter->ListMPEdec,
                    thisEntry,
                    &Adapter->MPEListSpinLock

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日产精品一区| 国产一区二区在线影院| 色婷婷综合激情| 一区二区三区国产| 一本在线高清不卡dvd| 一区二区三区小说| 51精品秘密在线观看| 蜜臀久久99精品久久久画质超高清 | 久久精品日产第一区二区三区高清版| 精品一区二区三区在线观看国产| 久久女同互慰一区二区三区| 99久久精品国产一区二区三区 | 欧美日韩国产乱码电影| 欧美aⅴ一区二区三区视频| 精品av久久707| 99久久精品情趣| 日本va欧美va瓶| 国产欧美日本一区视频| 欧美视频在线一区二区三区| 久久99精品久久久久久动态图 | 丰满少妇在线播放bd日韩电影| 综合自拍亚洲综合图不卡区| 欧美日韩国产综合视频在线观看| 国产在线看一区| 一区二区三区视频在线观看| 日韩免费高清电影| 91亚洲精品一区二区乱码| 日韩一区欧美二区| 国产精品久久久久一区二区三区| 欧美日韩一区二区三区四区五区| 国产老肥熟一区二区三区| 亚洲免费色视频| 久久综合中文字幕| 欧美午夜精品久久久| 国产成人在线免费观看| 亚洲高清在线视频| 国产精品女同一区二区三区| 欧美一区二区三区在线看| 97久久超碰国产精品电影| 精品午夜久久福利影院| 亚洲一区免费视频| 国产精品久久久久久久岛一牛影视| 欧美美女黄视频| 色综合天天综合网天天看片| 国产麻豆精品在线| 日本不卡123| 亚洲成国产人片在线观看| 国产精品久久久久久久久久久免费看 | 综合久久国产九一剧情麻豆| 91精品婷婷国产综合久久竹菊| 97精品电影院| 国产精品亚洲а∨天堂免在线| 亚洲国产欧美在线人成| 一区视频在线播放| 久久精品亚洲一区二区三区浴池 | 色婷婷亚洲婷婷| 成人av手机在线观看| 国产成人精品免费| 狠狠色综合色综合网络| 免费高清在线一区| 三级久久三级久久久| 亚洲va欧美va国产va天堂影院| 亚洲欧洲另类国产综合| 国产精品视频一二| 国产精品午夜电影| 亚洲国产高清aⅴ视频| 久久精品亚洲国产奇米99| 精品久久国产老人久久综合| 日韩一级黄色片| 日韩一区二区三区电影在线观看| 欧美高清性hdvideosex| 制服丝袜日韩国产| 91精品在线一区二区| 91精品麻豆日日躁夜夜躁| 51精品久久久久久久蜜臀| 欧美一区二区精品久久911| 正在播放亚洲一区| 日韩欧美国产一区在线观看| 精品久久一区二区三区| 久久久影院官网| 欧美国产丝袜视频| 最新中文字幕一区二区三区| 亚洲欧美日本在线| 亚洲午夜在线电影| 日本中文字幕一区二区有限公司| 奇米影视一区二区三区| 精品在线免费观看| 丰满少妇久久久久久久| 91香蕉视频mp4| 欧美日韩国产色站一区二区三区| 9191国产精品| 精品999在线播放| 国产欧美一区二区三区在线看蜜臀| 国产日韩精品视频一区| 1区2区3区欧美| 亚洲香肠在线观看| 日本在线播放一区二区三区| 狠狠狠色丁香婷婷综合激情| 福利一区福利二区| 在线观看一区二区精品视频| 欧美电影一区二区三区| 精品国产sm最大网站| 国产精品理伦片| 亚洲成av人影院在线观看网| 极品瑜伽女神91| www.欧美日韩国产在线| 欧美日韩大陆一区二区| 久久久久久久久99精品| 亚洲精品伦理在线| 美女一区二区久久| 成人白浆超碰人人人人| 色呦呦一区二区三区| 日韩欧美成人一区| 国产精品你懂的在线| 天堂va蜜桃一区二区三区漫画版| 精品午夜久久福利影院| 在线免费观看日本一区| 久久综合色综合88| 亚洲一区二区三区在线| 国产999精品久久久久久| 欧美日韩激情一区二区| 国产精品毛片久久久久久| 日韩精品一二三四| 91在线观看免费视频| 日韩欧美一级特黄在线播放| 国产精品毛片久久久久久| 久久精品国产精品青草| 色狠狠一区二区| 国产欧美日韩精品在线| 日韩—二三区免费观看av| 99精品视频一区| 久久久久久97三级| 免费人成精品欧美精品| 91久久国产最好的精华液| 国产视频视频一区| 日本在线播放一区二区三区| 在线视频观看一区| 综合激情成人伊人| 国产精品88888| 日韩视频一区二区| 婷婷丁香久久五月婷婷| 色哟哟精品一区| 中文字幕的久久| 国产一区二区三区精品欧美日韩一区二区三区 | 亚洲国产电影在线观看| 韩国在线一区二区| 日韩一区二区影院| 五月天中文字幕一区二区| 色悠久久久久综合欧美99| 中文字幕一区二区三区蜜月| 国产精品亚洲专一区二区三区| 日韩一区二区中文字幕| 三级欧美在线一区| 在线不卡免费欧美| 五月综合激情网| 欧美精品aⅴ在线视频| 午夜日韩在线观看| 欧美日韩另类国产亚洲欧美一级| 日韩美女视频一区二区 | 精品污污网站免费看| 亚洲精品视频在线| 91黄色免费版| 亚洲国产综合色| 欧美日韩美少妇| 三级欧美韩日大片在线看| 在线成人av网站| 久久精品久久久精品美女| 欧美一区二视频| 久久精品99国产精品日本| 日韩欧美在线一区二区三区| 老鸭窝一区二区久久精品| 欧美成人精品高清在线播放| 麻豆精品一区二区三区| 日韩精品一区二区三区四区视频 | 欧洲av一区二区嗯嗯嗯啊| 亚洲欧洲制服丝袜| 91九色最新地址| 视频一区二区三区入口| 精品日本一线二线三线不卡| 国产乱对白刺激视频不卡 | 亚洲视频一区二区在线观看| 91丨porny丨户外露出| 一区二区三区欧美日韩| 欧美日韩精品一区二区| 蜜臀av一区二区| 国产午夜精品一区二区| 99久久久国产精品| 日韩影院精彩在线| 久久久亚洲欧洲日产国码αv| 高潮精品一区videoshd| 亚洲综合一二区| 欧美videos大乳护士334| 丁香婷婷深情五月亚洲| 亚洲老妇xxxxxx| 欧美一卡在线观看| 丁香婷婷深情五月亚洲| 丝袜美腿一区二区三区| 久久久一区二区三区捆绑**| 日本精品视频一区二区| 国产一区视频网站|