简体   繁体   中英

Where can i get source code of IoOutput8 ()

I'm looking for the code of IoOutput8 () function ,which is used to write a value to the specified I/O port.

Can anybody help knowing the right location of this functions source code??

In Linux, there is no IoOutput8() function. You should use void iowrite8(u8 value, void *addr); followed by the wmb(); (write memory barrier). For more details, see §9.4.2 Accessing I/O Memory of LDD Book (also see §9.4.3. Ports as I/O Memory for ioport_map/ioport_unmap ).

As for the source code for IoOutput8() , you should probably get it from the same place you got that function. The only place I could find it is Phoenix IO Access Library, if that is something you are using, you should ask Phoenix company for the source code if they haven't provided it already.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM