K> Should I write a driver or get some third party library to approach
it ?

You won't receive a useful answer to that question, because nowhere
have you mentioned what it is you are trying to do. What are you
trying to do? And what makes you think that directly accessing
hardware I/O ports from application mode code is the way to do it?

http://homepages.tesco.net./~J.deBoy.../put-down-the-
chocolate-covered-banana.html>