Hi,
I am writing a driver for a ethernet controller. The controller i connected to the io memory and expects data to be in the Little endia format (will call it LE now and BE for big endian). The main cpu whic runs the driver code is a BE machine. During the startup I write th descriptors into the io memory in the LE format. In the send and receiv routine which is called by the IP stack I have pointers that access th descriptors. The pointers are actually pointing to data which is in L format, so if I want to access a bit(a part of the desc bit field) lik ptr->own_bit it will refer to the wrong bit. How can I come over thi problem.
wr, Sid