After a miniport has determined its hardware resources and has called NdisMSetAttributes(Ex), it claims the resources it will use in the registry. The miniport must call NdisMSetAttributes(Ex) before the following steps are taken. Every miniport, no matter what type of NIC it manages, must at a minimum:
·Allocate the memory it needs to manage its device. This memory is in addition to that allocated for its adapter-specific structure. For instance, it might allocate memory to receive incoming frames and perhaps staging buffers for outgoing data.
·Register the I/O ports it is claiming for its NIC by calling NdisMRegisterIoPortRange.