Detect if AHCI is ON in BIOS from Linux

diskI posted this question in LKML but didn’t get any reply for sometime before I could figure it out. I could see that ATA driver has API-s to get AHCI status at the kernel level but couldn’t find anything that would give the status at user level. One of my friends helped out with this and here’s the way to get it:

# grep -inr ahci /proc/interrupts
11: 43:      64247       2154   PCI-MSI-edge      ahci