Lines Matching defs:AdapterInfo
48 Command Descriptor Block based on information derived from the AdapterInfo instance data.
53 Keep in mind the AdapterInfo->State is the active state of the adapter (based on software
58 @param AdapterInfo Pointer to the NIC data structure information which
67 IN NIC_DATA_INSTANCE *AdapterInfo
70 CdbPtr->StatFlags = (PXE_STATFLAGS) (CdbPtr->StatFlags | AdapterInfo->State);
90 It's final action is to change the AdapterInfo->State to PXE_STATFLAGS_GET_STATE_STARTED.
93 @param AdapterInfo Pointer to the NIC data structure information which
102 IN NIC_DATA_INSTANCE *AdapterInfo
111 if (AdapterInfo->State != PXE_STATFLAGS_GET_STATE_STOPPED) {
128 if (AdapterInfo->VersionFlag == 0x30) {
129 AdapterInfo->Delay_30 = (bsptr_30) (UINTN) CpbPtr->Delay;
130 AdapterInfo->Virt2Phys_30 = (virtphys_30) (UINTN) CpbPtr->Virt2Phys;
131 AdapterInfo->Block_30 = (block_30) (UINTN) CpbPtr->Block;
149 // Note: AdapterInfo->Mem_Io_30 is just filled for consistency with other
153 AdapterInfo->Mem_Io_30 = (mem_io_30) (UINTN) CpbPtr->Mem_IO;
154 AdapterInfo->Mem_Io = (mem_io) (UINTN) TmpMemIo;
155 AdapterInfo->Unique_ID = (UINT64) (UINTN) AdapterInfo;
158 AdapterInfo->Delay = (bsptr) (UINTN) CpbPtr_31->Delay;
159 AdapterInfo->Virt2Phys = (virtphys) (UINTN) CpbPtr_31->Virt2Phys;
160 AdapterInfo->Block = (block) (UINTN) CpbPtr_31->Block;
161 AdapterInfo->Mem_Io = (mem_io) (UINTN) CpbPtr_31->Mem_IO;
163 AdapterInfo->Map_Mem = (map_mem) (UINTN) CpbPtr_31->Map_Mem;
164 AdapterInfo->UnMap_Mem = (unmap_mem) (UINTN) CpbPtr_31->UnMap_Mem;
165 AdapterInfo->Sync_Mem = (sync_mem) (UINTN) CpbPtr_31->Sync_Mem;
166 AdapterInfo->Unique_ID = CpbPtr_31->Unique_ID;
169 AdapterInfo->State = PXE_STATFLAGS_GET_STATE_STARTED;
181 It's final action is to change the AdapterInfo->State to PXE_STATFLAGS_GET_STATE_STOPPED.
184 @param AdapterInfo Pointer to the NIC data structure information which
193 IN NIC_DATA_INSTANCE *AdapterInfo
196 if (AdapterInfo->State == PXE_STATFLAGS_GET_STATE_INITIALIZED) {
202 AdapterInfo->Delay_30 = 0;
203 AdapterInfo->Virt2Phys_30 = 0;
204 AdapterInfo->Block_30 = 0;
206 AdapterInfo->Delay = 0;
207 AdapterInfo->Virt2Phys = 0;
208 AdapterInfo->Block = 0;
210 AdapterInfo->Map_Mem = 0;
211 AdapterInfo->UnMap_Mem = 0;
212 AdapterInfo->Sync_Mem = 0;
214 AdapterInfo->State = PXE_STATFLAGS_GET_STATE_STOPPED;
229 @param AdapterInfo Pointer to the NIC data structure information which
238 IN NIC_DATA_INSTANCE *AdapterInfo
281 @param AdapterInfo Pointer to the NIC data structure information which
290 IN NIC_DATA_INSTANCE *AdapterInfo
299 DbPtr->pci.Bus = AdapterInfo->Bus;
300 DbPtr->pci.Device = AdapterInfo->Device;
301 DbPtr->pci.Function = AdapterInfo->Function;
304 DbPtr->pci.Config.Dword[Index] = AdapterInfo->Config[Index];
321 Otherwise, AdapterInfo->State is updated with PXE_STATFLAGS_GET_STATE_INITIALIZED showing the state of
325 @param AdapterInfo Pointer to the NIC data structure information which
334 NIC_DATA_INSTANCE *AdapterInfo
349 if (AdapterInfo->State == PXE_STATFLAGS_GET_STATE_INITIALIZED) {
367 AdapterInfo->CableDetect = (UINT8) ((CdbPtr->OpFlags == (UINT16) PXE_OPFLAGS_INITIALIZE_DO_NOT_DETECT_CABLE) ? (UINT8) 0 : (UINT8) 1);
368 AdapterInfo->LinkSpeedReq = (UINT16) CpbPtr->LinkSpeed;
369 AdapterInfo->DuplexReq = CpbPtr->DuplexMode;
370 AdapterInfo->LoopBack = CpbPtr->LoopBackMode;
371 AdapterInfo->MemoryPtr = CpbPtr->MemoryAddr;
372 AdapterInfo->MemoryLength = CpbPtr->MemoryLength;
374 CdbPtr->StatCode = (PXE_STATCODE) E100bInit (AdapterInfo);
379 AdapterInfo->State = PXE_STATFLAGS_GET_STATE_INITIALIZED;
392 @param AdapterInfo Pointer to the NIC data structure information which
401 IN NIC_DATA_INSTANCE *AdapterInfo
413 CdbPtr->StatCode = (UINT16) E100bReset (AdapterInfo, CdbPtr->OpFlags);
427 Otherwise, AdapterInfo->State is updated with PXE_STATFLAGS_GET_STATE_STARTED showing the state of
431 @param AdapterInfo Pointer to the NIC data structure information which
440 IN NIC_DATA_INSTANCE *AdapterInfo
446 CdbPtr->StatCode = (UINT16) E100bShutdown (AdapterInfo);
451 AdapterInfo->State = PXE_STATFLAGS_GET_STATE_STARTED;
466 @param AdapterInfo Pointer to the NIC data structure information which
475 IN NIC_DATA_INSTANCE *AdapterInfo
496 AdapterInfo->int_mask = IntMask;
497 E100bSetInterruptState (AdapterInfo);
502 AdapterInfo->int_mask = (UINT16) (AdapterInfo->int_mask & ~(IntMask));
503 E100bSetInterruptState (AdapterInfo);
516 if ((AdapterInfo->int_mask & PXE_OPFLAGS_INTERRUPT_RECEIVE) != 0) {
521 if ((AdapterInfo->int_mask & PXE_OPFLAGS_INTERRUPT_TRANSMIT) != 0) {
526 if ((AdapterInfo->int_mask & PXE_OPFLAGS_INTERRUPT_COMMAND) != 0) {
540 @param AdapterInfo Pointer to the NIC data structure information which
549 IN NIC_DATA_INSTANCE *AdapterInfo
582 NewFilter = (UINT16) (NewFilter | AdapterInfo->Rx_Filter);
660 if ((CdbPtr->CPBsize == 0) && (AdapterInfo->mcast_list.list_len == 0)) {
668 NewFilter = (UINT16) (NewFilter | (PXE_OPFLAGS_RECEIVE_FILTER_UNICAST | AdapterInfo->Rx_Filter));
681 NewFilter = (UINT16) ((~(CdbPtr->OpFlags & 0x1F)) & AdapterInfo->Rx_Filter);
690 AdapterInfo->mcast_list.list_len = 0;
694 E100bSetfilter (AdapterInfo, NewFilter, CdbPtr->CPBaddr, CdbPtr->CPBsize);
700 if ((CdbPtr->DBsize != 0) && (AdapterInfo->mcast_list.list_len != 0)) {
709 // DbPtr->mc_count = AdapterInfo->mcast_list.list_len;
711 copy_len = (UINT16) (AdapterInfo->mcast_list.list_len * PXE_MAC_LENGTH);
718 ptr2 = (UINT8 *) (&AdapterInfo->mcast_list.mc_list[0]);
726 if (AdapterInfo->Receive_Started) {
727 CdbPtr->StatFlags = (PXE_STATFLAGS) (CdbPtr->StatFlags | AdapterInfo->Rx_Filter);
744 @param AdapterInfo Pointer to the NIC data structure information which
753 IN NIC_DATA_INSTANCE *AdapterInfo
763 // change the AdapterInfo->CurrentNodeAddress field.
766 &AdapterInfo->CurrentNodeAddress[0],
767 &AdapterInfo->PermNodeAddress[0],
771 AdapterInfo->CurrentNodeAddress[Index] = AdapterInfo->PermNodeAddress[Index];
774 E100bSetupIAAddr (AdapterInfo);
784 AdapterInfo->CurrentNodeAddress[Index] = CpbPtr->StationAddr[Index];
787 E100bSetupIAAddr (AdapterInfo);
796 DbPtr->StationAddr[Index] = AdapterInfo->CurrentNodeAddress[Index];
797 DbPtr->BroadcastAddr[Index] = AdapterInfo->BroadcastNodeAddress[Index];
798 DbPtr->PermanentAddr[Index] = AdapterInfo->PermNodeAddress[Index];
822 @param AdapterInfo Pointer to the NIC data structure information which
831 IN NIC_DATA_INSTANCE *AdapterInfo
844 CdbPtr->StatCode = (UINT16) E100bStatistics (AdapterInfo, 0, 0);
846 CdbPtr->StatCode = (UINT16) E100bStatistics (AdapterInfo, CdbPtr->DBaddr, CdbPtr->DBsize);
859 @param AdapterInfo Pointer to the NIC data structure information which
868 IN NIC_DATA_INSTANCE *AdapterInfo
918 @param AdapterInfo Pointer to the NIC data structure information which
927 IN NIC_DATA_INSTANCE *AdapterInfo
944 DbPtr->Data.Dword[Index] = AdapterInfo->NVData[Index];
970 @param AdapterInfo Pointer to the NIC data structure information which
979 IN NIC_DATA_INSTANCE *AdapterInfo
992 RxPtr = &AdapterInfo->rx_ring[AdapterInfo->cur_rx_ind];
1040 CheckCBList (AdapterInfo);
1042 if (AdapterInfo->xmit_done_head == AdapterInfo->xmit_done_tail) {
1046 if (AdapterInfo->xmit_done_head != AdapterInfo->xmit_done_tail) {
1047 DbPtr->TxBuffer[Index] = AdapterInfo->xmit_done[AdapterInfo->xmit_done_head];
1048 AdapterInfo->xmit_done_head = next (AdapterInfo->xmit_done_head);
1056 if (AdapterInfo->xmit_done_head != AdapterInfo->xmit_done_tail) {
1069 Status = InWord (AdapterInfo, AdapterInfo->ioaddr + SCBStatus);
1070 AdapterInfo->Int_Status = (UINT16) (AdapterInfo->Int_Status | Status);
1075 OutWord (AdapterInfo, (UINT16) (Status & 0xfc00), (UINT32) (AdapterInfo->ioaddr + SCBStatus));
1080 Status = AdapterInfo->Int_Status;
1094 AdapterInfo->PhyAddress = 0xFF;
1095 AdapterInfo->CableDetect = 1;
1097 if (!PhyDetect (AdapterInfo)) {
1112 @param AdapterInfo Pointer to the NIC data structure information which
1121 IN NIC_DATA_INSTANCE *AdapterInfo
1195 @param AdapterInfo Pointer to the NIC data structure information which
1204 IN NIC_DATA_INSTANCE *AdapterInfo
1214 CdbPtr->StatCode = (PXE_STATCODE) E100bTransmit (AdapterInfo, CdbPtr->CPBaddr, CdbPtr->OpFlags);
1230 @param AdapterInfo Pointer to the NIC data structure information which
1239 IN NIC_DATA_INSTANCE *AdapterInfo
1246 if (!AdapterInfo->Receive_Started) {
1253 CdbPtr->StatCode = (UINT16) E100bReceive (AdapterInfo, CdbPtr->CPBaddr, CdbPtr->DBaddr);
1271 @param AdapterInfo Pointer to the NIC data structure information which
1284 NIC_DATA_INSTANCE *AdapterInfo;
1299 AdapterInfo = &(UNDI32DeviceList[CdbPtr->IFnum]->NicInfo);
1303 AdapterInfo->VersionFlag = 0x31;
1315 @param AdapterInfo Pointer to the NIC data structure information which
1328 NIC_DATA_INSTANCE *AdapterInfo;
1379 AdapterInfo = &(UNDI32DeviceList[CdbPtr->IFnum]->NicInfo);
1388 if (AdapterInfo->State == PXE_STATFLAGS_GET_STATE_STOPPED) {
1397 if (AdapterInfo->State != PXE_STATFLAGS_GET_STATE_INITIALIZED) {
1410 tab_ptr->api_ptr (CdbPtr, AdapterInfo);